Skip to content

Commit

Permalink
fix: be consistent in regexp for props matching (openfoodfacts#10579)
Browse files Browse the repository at this point in the history
A very simple fix to have consistent regexp with next line
  • Loading branch information
alexgarel authored Jul 23, 2024
1 parent 1e6623e commit 7f1d4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ProductOpener/Tags.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ sub build_tags_taxonomy ($tagtype, $publish) {
push(@taxonomy_errors, _taxonomy_error("ERROR", "unknown_nutriscore", $msg, $line_number));
}
}
elsif ($line =~ /^expected_ingredients:en:/) {
elsif ($line =~ /^expected_ingredients:en: */) {
# the line should contain a single ingredient
my $expected_ingredients = $'; # everything after the matched string

Expand Down

0 comments on commit 7f1d4ba

Please sign in to comment.