Skip to content

Commit

Permalink
chore: new bytes support
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Apr 12, 2024
1 parent 7b8b2a0 commit 38c2aa4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/appier/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@
""" The second regular expression that is going to be used
by the slugier sub system to replace some of its values """

CSS_ABS_REGEX = re.compile(rb"url\((?!(http:\/\/|https:\/\/|\/\/|\/))([^\)]+)\)")
CSS_ABS_REGEX = re.compile(
legacy.bytes(r"url\((?!(http:\/\/|https:\/\/|\/\/|\/))([^\)]+)\)")
)
""" The regular expression that is going to be used to capture
the relative CSS URL values, so that they may be converted into
absolute ones for proper inlining, note that the regex is defined
Expand Down

0 comments on commit 38c2aa4

Please sign in to comment.