Skip to content

Commit

Permalink
feat(streetAddress): add support for 'way'
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Nov 4, 2016
1 parent 15713ba commit 41c07c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/patterns.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var lastNames = require('./lastNames.json');

var aptRegex = /(apt|bldg|dept|fl|hngr|lot|pier|rm|ste|slip|trlr|unit|#)\.? *[a-z0-9-]+\b/gi;
var poBoxRegex = /P\.? ?O\.? *Box +\d+/gi;
var roadRegex = /(street|st|road|rd|avenue|ave|drive|dr|loop|court|ct|circle|cir|lane|ln|boulevard|blvd)\.?/gi;
var roadRegex = /(street|st|road|rd|avenue|ave|drive|dr|loop|court|ct|circle|cir|lane|ln|boulevard|blvd|way)\.?\b/gi;

module.exports = {
name: new RegExp(`\\b((${firstNames.join('|')}|${lastNames.join('|')})[- ]+)*(${lastNames.join('|')})\\b`, 'gi'),
Expand Down

0 comments on commit 41c07c1

Please sign in to comment.