-
-
Notifications
You must be signed in to change notification settings - Fork 943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(location): no leading zero on building number or secondary address #2032
fix(location): no leading zero on building number or secondary address #2032
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #2032 +/- ##
=======================================
Coverage 99.59% 99.59%
=======================================
Files 2567 2567
Lines 243388 243394 +6
Branches 1251 1253 +2
=======================================
+ Hits 242404 242417 +13
+ Misses 957 950 -7
Partials 27 27
|
IMO instead of doing this strange pattern duplication stuff we should rather change the implementation to not use replacewithnumber and instead use a simple regex replace with numeric without leading zero or something. |
Team Decision
See #2031 (comment) @matthewmayer Will you update your PR or start a new one? |
Would it also make sense to apply this for secondary address? To avoid "Apt 000" in en or '3/0' in pl etc. |
in this PR or a seperate PR? |
Since it does the exact same thing for related stuff, I am fine with doing it in one PR. The PR title needs to be adjusted anyway. |
fix #2031
Note this only affects default
en
locale. Similar approach could be taken in other locales which have building_number patterns