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

K does not accept ":" #17

Closed
CharlesNepote opened this issue May 10, 2021 · 0 comments
Closed

K does not accept ":" #17

CharlesNepote opened this issue May 10, 2021 · 0 comments
Labels
🎯 P1 Priority 1

Comments

@CharlesNepote
Copy link
Member

CharlesNepote commented May 10, 2021

Which is a problem if you want to use namespaces (like OpenStreetMap keys). Eg.

"recalled_product" => "yes"
"recalled_product:date" => "2021-05"
"recalled_product:link" => "https://rappel.conso.gouv.fr/fiche-rappel/383/Interne"

The regexp should be: ^[a-zA-Z0-9_]+:?[a-zA-Z0-9_]+?$ ( see https://regex101.com/r/2hegDH/1 ).

Maybe we have to decide to allow or not subnamespaces. It is possible in OpenStreetMap, eg. minspeed:lanes:forward=50 (source). Then the regexp should be: ^[a-zA-Z0-9_]+(:?[a-zA-Z0-9_]+?)+$.
It could be interesting for languages: namespace:property:fr=...

Do you see other chars that could be accepted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 P1 Priority 1
Projects
None yet
Development

No branches or pull requests

1 participant