-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
fix: more changes for GS1 import through Bayard #8068
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8068 +/- ##
=======================================
Coverage ? 44.70%
=======================================
Files ? 100
Lines ? 20213
Branches ? 4636
=======================================
Hits ? 9037
Misses ? 10103
Partials ? 1073
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
LGTM
lib/ProductOpener/ImportConvert.pm
Outdated
@@ -851,9 +851,13 @@ sub clean_fields ($product_ref) { | |||
foreach my $brand (split(/,/, $product_ref->{brands})) { | |||
$brand =~ s/^\s+//; | |||
$brand =~ s/\s+$//; | |||
# we may get brands with quantifiers like * + ? etc. we need to escape them | |||
$brand =~ s/(\*|\+|\?|\(|\)|\[|\]|\{|\}|\$|\^|\\)/\\/g; |
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.
delicious :-P
Kudos, SonarCloud Quality Gate passed! |
Add some mappings and fix some bugs.