User:Quarl/___location canonicalize.js: Difference between revisions

Content deleted Content added
〈48 words changed〉 new CountryData class - bf
regexp bf
Line 102:
'Washington', 'West Virginia', 'Wisconsin', 'Wyoming' ],
'[[United States|USA]]',
'\\[\\[(?:United[ _]States(?:[ _][^|\\\]]+?)?|USA)(?:\\|[^|\\\]]+?)?\\]\\]'),
 
new CountryData( // Canada
Line 145:
// Haven't mentioned country earlier
if (right.match(c.regexp_country_sq)) {
// it's there already,; good.
} else {
// not there; add it.