Skip to content
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

datenanfragen-bot and US address suggestions #1589

Open
fm opened this issue Dec 18, 2021 · 1 comment
Open

datenanfragen-bot and US address suggestions #1589

fm opened this issue Dec 18, 2021 · 1 comment

Comments

@fm
Copy link
Collaborator

fm commented Dec 18, 2021

datenanfragen-bot is suggesting the state + zip be on a separate line from the city, but #975 says City, State, ZIP should be on the same line (country of course goes on its own line)

Screen Shot 2021-12-18 at 4 47 49 PM

@baltpeter
Copy link
Member

The check is currently simply replacing commas with newlines if there are too few of the latter:

suggestions: json['address'].includes(',') && [json['address'].replace(/\s*,\s*/g, '\n')],

We already have specific address processing for Germany. We'll need to also add that for the US (and other countries).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants