Skip to content

Commit b90fbe9

Browse files
author
Mauricio de Oliveira
committed
Modified geocoder regex to allow empty numbers.
1 parent 5418240 commit b90fbe9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

static/js/geocoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var Geocoder = function(options) {
1313
this.parser_configurations = {
1414

1515
'US': {
16-
regex: /^(\d+)(\D+)((suite|ste|#)?\s*\d+)?$/i,
16+
regex: /^(\d+)?(\D+)((suite|ste|#)?\s*\d+)?$/i,
1717
street_components: ['number', 'street', 'unit']
1818
},
1919

0 commit comments

Comments
 (0)