Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanegigandet committed Aug 22, 2023
1 parent bd7e98b commit 05bcfe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ProductOpener/Tags.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3468,7 +3468,7 @@ sub canonicalize_taxonomy_tag ($tag_lc, $tagtype, $tag, $exists_in_taxonomy_ref

# Latin animal species (e.g. for fish)
if ($tagtype eq "ingredients") {
@test_languages = ("xx","la");
@test_languages = ("xx", "la");
}
}
elsif ($options{product_type} eq "beauty") {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/tags.t
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,6 @@ my $regexps_ref = generate_regexps_matching_taxonomy_entries("test", "list_of_re
compare_to_expected_results($regexps_ref, "$expected_result_dir/regexps.json", $update_expected_results);

# xx: entries for ingredients should be used to match in all languages
is(canonicalize_taxonomy_tag('pl','ingredients','Lactobacillus bulgaricus'), "en:lactobacillus-bulgaricus");
is(canonicalize_taxonomy_tag('pl', 'ingredients', 'Lactobacillus bulgaricus'), "en:lactobacillus-bulgaricus");

done_testing();

0 comments on commit 05bcfe2

Please sign in to comment.