Skip to content

Commit bb67da4

Browse files
committed
fix: update regex replacement values to raw strings
1 parent 1c2642e commit bb67da4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/admin_scripts/base/stylesheets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
URL_REGEX = re.compile(URL_REGEX_VALUE)
7171
""" The URL regex """
7272

73-
URL_REPLACEMENT_VALUE = "url(\g<1>)"
73+
URL_REPLACEMENT_VALUE = r"url(\g<1>)"
7474
""" The URL replacement regex value """
7575

7676
PROPERTY_LINE_REGEX_VALUE = r"^[ ]*([\w\-]*)[ ]*:[ ]*(\S*)"
@@ -79,7 +79,7 @@
7979
PROPERTY_LINE_REGEX = re.compile(PROPERTY_LINE_REGEX_VALUE)
8080
""" The property line regex """
8181

82-
PROPERTY_LINE_REPLACEMENT_VALUE = "\g<1>: \g<2>"
82+
PROPERTY_LINE_REPLACEMENT_VALUE = r"\g<1>: \g<2>"
8383
""" The property line replacement value """
8484

8585
TOKEN_REGEX_VALUE = r"\s*([>\+\s])\s*"

0 commit comments

Comments
 (0)