Skip to content

Commit d0fa51e

Browse files
committed
Patches for bugs introduced in 2.4 and 2.5 releases
1 parent 58cb3a9 commit d0fa51e

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

classifier/scheme/venue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ module.exports = [
186186
scheme: [
187187
{
188188
is: ['PlaceClassification', 'VenueClassification'],
189-
not: ['StreetClassification']
189+
not: ['StreetClassification', 'StreetSuffixClassification']
190190
},
191191
{
192192
is: ['AlphaClassification'],
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
allè|alle
21
allèen|alleen
32
veg|v.
43
vegen|v.|vn.
54
vei|v.
6-
veien|v.|vn.
5+
veien|v.|vn.

test/address.esp.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ const testcase = (test, common) => {
55
{ street: 'Carrer d\'Aragó' }, { housenumber: '155' },
66
{ postcode: '08011' }, { locality: 'Barcelona' }
77
])
8+
9+
assert('Calle Principal 20 Barcelona', [
10+
{ street: 'Calle Principal' }, { housenumber: '20' },
11+
{ locality: 'Barcelona' }
12+
])
813
}
914

1015
module.exports.all = (tape, common) => {

test/address.usa.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ const testcase = (test, common) => {
285285
// https://github.com/pelias/pelias/issues/912
286286
assert('Jefferson Parish', [{ locality: 'Jefferson' }])
287287
assert('Mills County', [{ locality: 'Mills' }])
288+
289+
// Partial admin match that triggered a regression in 2.5.0
290+
assert('Main St Seattl', [
291+
{ street: 'Main St' }
292+
])
288293
}
289294

290295
module.exports.all = (tape, common) => {

0 commit comments

Comments
 (0)