-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
feat: Use 'GS1 Barcode Syntax Engine' to normalize product codes #9049
Conversation
- Remove redundant `$` - Fix scope of `$ai_data_str` - Some regexes
- Ensure that more GS1 Data Link URI formats can be 'normalized' - URIs that cannot be a GS1 Data Link should not be treated as an product code
Kudos, SonarCloud Quality Gate passed! |
on the prod server, I'm getting an error when I try to install the module with cpan:
|
Sounds like an old Perl version. The normal code doesn't use try - just the test: https://github.com/search?q=repo%3Ahangy%2Fstunning-goggles%20try&type=code So it should work, if you install with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on the .dev server (on stretch), it works
https://world.openfoodfacts.dev/api/v3/product/(01)04044782317112(17)270101
What
Use Perl module
GS1::SyntaxEngine::FFI
to normalize barcodes. This allows more GS1 strings to be used with search.Related issue(s) and discussion