Skip to content

Conversation

@Famlam
Copy link
Collaborator

@Famlam Famlam commented Nov 23, 2024

See #2302

  1. The wiki was updated
  2. JOSM has added this to this months milestone

So I think we should stop warning about it too.

This PR stops warning for newlines in values (replacing it by spaces, so "at position X" is not affected). It keeps warning for keys with newlines.

I didn't change the regex but opted for a replace because:

  1. the same regex is used for keys (and keys with newlines are wrong)
  2. There's no convenient alternative for \p{Control} in regex that matches the same minus \n. I think [\u0000-\u0009\u000b\u001F\u007F-\u009F] is a lot less readable.

Also remove the newline from the example, and fix a few typos

- Keep the warning on keys
- Keep the warning for other "control" characters (like bell, backspace, ...)

Also remove the newline from the example, and fix a few typos
@frodrigo frodrigo merged commit 867b463 into dev Nov 23, 2024
4 of 6 checks passed
@Famlam Famlam deleted the famlam-inscription branch November 23, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants