Skip to content

Commit 6fa6cbd

Browse files
committed
amend regex to look for any digit in pattern
1 parent 44226f8 commit 6fa6cbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/jobs/housing/housing_dwellings_list_gx_suite.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ class ExpectLLPGColumnValueLengthsBetween(gxe.ExpectColumnValueLengthsToBeBetwee
3131

3232
class ExpectBlockRefNoColumnValuesToMatchRegex(gxe.ExpectColumnValuesToMatchRegex):
3333
column: str = "block_reference_number"
34-
regex: str = "^\d+$"
34+
regex: str = r"^\d+$"
3535
description: str = "Expect Block Reference Number to match regex ^\d+$ (numerical)"
3636

3737

3838
class ExpectLLPGColumnValuesToMatchRegex(gxe.ExpectColumnValuesToMatchRegex):
3939
column: str = "llpg"
40-
regex: str = "^[1-9]\d{10,11}"
40+
regex: str = r"^[1-9]\d{10,11}"
4141
description: str = "Expect UPRN (LLPG) to match regex ^[1-9]\d{10,11} (starting with digit 1-9, followed by 10 or 11 digits"
4242

4343

4444
class ExpectEstateRefNoColumnValuesToMatchRegex(gxe.ExpectColumnValuesToMatchRegex):
4545
column: str = "estate_reference_number"
46-
regex: str = "^\d+$"
46+
regex: str = r"^\d+$"
4747
description: str = "Expect Estate Reference Number to match regex ^\d+$ (numerical)"
4848

4949

0 commit comments

Comments
 (0)