Skip to content

Commit ccf5d6d

Browse files
committed
Update regexes for OtherCashIncome - see HEA-807
1 parent 203b42d commit ccf5d6d

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

pipelines/assets/livelihood_activity_regexes.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,13 @@
296296
"times_per_year"
297297
],
298298
[
299-
"{nbr_pattern} (?:people per HH|personnes par ménage|personnes par mènage)",
299+
"{product_pattern}{separator_pattern} {nbr_pattern} (?:de )?fois / an(?:née)?",
300+
null,
301+
false,
302+
"times_per_year"
303+
],
304+
[
305+
"{nbr_pattern} (?:people per hh|personnes par ménage|personnes par mènage|pers par mènage)",
300306
null,
301307
false,
302308
"people_per_household"
@@ -835,6 +841,12 @@
835841
true,
836842
null
837843
],
844+
[
845+
"autre auto-emploi{separator_pattern} ?{product_pattern}",
846+
null,
847+
true,
848+
null
849+
],
838850
[
839851
"(?P<product_id>autres intrants \\(dont location de terre\\))",
840852
null,
@@ -860,7 +872,7 @@
860872
"unit_multiple"
861873
],
862874
[
863-
"{product_pattern}{separator_pattern} (?:{nbr_pattern} people per hh|{nbr_pattern} pers par mènage|{nbr_pattern} personnes par mènage)",
875+
"{product_pattern}{separator_pattern} {nbr_pattern} (?:people per hh|personnes par ménage|personnes par mènage|pers par mènage)",
864876
null,
865877
true,
866878
"people_per_household"

0 commit comments

Comments
 (0)