Skip to content

Commit 2a1ffb3

Browse files
committed
Add regex pattern for nbr danimaux egorges see HEA-812
1 parent d006329 commit 2a1ffb3

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

pipelines/assets/livelihood_activity_regexes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@
638638
"percentage_kcals"
639639
],
640640
[
641-
"{product_pattern}: {nbr_pattern} d'animaux abattus",
641+
"{product_pattern}: {nbr_pattern} d'animaux (?:abattus|égorgés)",
642642
"MeatProduction",
643643
true,
644644
"animals_slaughtered"

pipelines_tests/test_assets/test_livelihood_activity_regexes.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,24 @@
9191
"season": "2nd season",
9292
"attribute": "percentage_kcals"
9393
},
94+
"viande de chameau: nbr d'animaux égorgés": {
95+
"strategy_type": "MeatProduction",
96+
"is_start": true,
97+
"product_id": "viande de chameau",
98+
"attribute": "animals_slaughtered"
99+
},
100+
"viande de boeuf: nbr d'animaux égorgés": {
101+
"strategy_type": "MeatProduction",
102+
"is_start": true,
103+
"product_id": "viande de boeuf",
104+
"attribute": "animals_slaughtered"
105+
},
106+
"viande de pts ruminants: nbr d'animaux égorgés": {
107+
"strategy_type": "MeatProduction",
108+
"is_start": true,
109+
"product_id": "viande de pts ruminants",
110+
"attribute": "animals_slaughtered"
111+
},
94112
"Goat meat: no. animals slaughtered": {
95113
"strategy_type": "MeatProduction",
96114
"is_start": true,

0 commit comments

Comments
 (0)