watmildon / josm-validator-rules

Custom and maybe dangerous validator rules
Creative Commons Zero v1.0 Universal
7 stars 3 forks source link

Street name expansion file should use regex matches not simple replace #1

Closed watmildon closed 1 year ago

watmildon commented 1 year ago

For example, this fixadd: fixAdd: concat("name=", replace(tag("name"), "N ", "North "));

Will incorrectly fixup an all cap street name of "N ACORN ST" to "North ACORNorth ST".

It was faster to get the simple rules set up and I'm review everything but better to patch it than leave a landmine.

watmildon commented 1 year ago

Fixed!