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

Add hyphen as an allowed char for properties #132

Closed
CharlesNepote opened this issue Feb 14, 2023 · 0 comments
Closed

Add hyphen as an allowed char for properties #132

CharlesNepote opened this issue Feb 14, 2023 · 0 comments
Labels
✨ enhancement New feature or request

Comments

@CharlesNepote
Copy link
Member

CharlesNepote commented Feb 14, 2023

The file to modify is: https://github.com/openfoodfacts/folksonomy_api/blob/main/folksonomy/models.py
Just modify:

  • re_key = re.compile(r'[a-z0-9_]+(\:[a-z0-9_]+)*')
  • and raise ValueError('k must be alpha-numeric [a-z0-9_:]')

And add tests into: https://github.com/openfoodfacts/folksonomy_api/blob/main/tests/test_main.py

@CharlesNepote CharlesNepote added the ✨ enhancement New feature or request label Feb 14, 2023
@CharlesNepote CharlesNepote changed the title Add hyphen as an allowed char to properties Add hyphen as an allowed char for properties Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant