Skip to content

Commit

Permalink
prefix regex strings with r
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Mar 13, 2024
1 parent 2b43416 commit af98125
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion edc_lab/models/box.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
(SHIPPED, "Shipped"),
)

human_readable_pattern = "^[A-Z]{3}\-[0-9]{4}\-[0-9]{2}$"
human_readable_pattern = r"^[A-Z]{3}\-[0-9]{4}\-[0-9]{2}$"


class BoxIsFullError(Exception):
Expand Down
4 changes: 2 additions & 2 deletions edc_lab/patterns.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
aliquot_human_readable_pattern = "^[0-9]{3}\-[0-9A-Z]{3}\-[0-9A-Z]{4}\-[0-9]{4}\-[0-9]{4}$"
aliquot_pattern = "^[0-9]{3}[0-9A-Z]{3}[0-9A-Z]{4}[0-9]{4}[0-9]{4}$"
aliquot_human_readable_pattern = r"^[0-9]{3}\-[0-9A-Z]{3}\-[0-9A-Z]{4}\-[0-9]{4}\-[0-9]{4}$"
aliquot_pattern = r"^[0-9]{3}[0-9A-Z]{3}[0-9A-Z]{4}[0-9]{4}[0-9]{4}$"

0 comments on commit af98125

Please sign in to comment.