- Issue created by @primsi
- Merge request !12Issue #3478544: Debug loftover and invalid regex syntax in the validator service. → (Merged) created by primsi
- 🇨🇭Switzerland berdir Switzerland
We should extend AddressVerificationTest to cover the problematic address.
- 🇸🇮Slovenia primsi
The
(\d*|\d*\/\d*)
was not really capturing the whole house numbers that contain slash, reversing the order to get that as well:(\d*\/\d+|\d+)
.When adding the problematic address to the test, I saw that the or fix (|| > |) actually broke that (seems like the broken syntax was producing correct results for this case). But then I wasn't sure if we should try to solve it with a different regex, so I just added another if block.
I also added some trimming for the street and expanded the test cases quite a bit.
Automatically closed - issue fixed for 2 weeks with no activity.