diff options
author | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-10-13 16:54:16 -0500 |
---|---|---|
committer | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-10-13 16:54:16 -0500 |
commit | 183793f54bd7bb36108a3c8b3a5edc5c3825a65a (patch) | |
tree | 3fb50b937dbc6046ae90d08557641f8050d14a43 | |
parent | a0e6e4d9558f32cebfc81b4995273ee3ccd83b4f (diff) | |
download | routes-183793f54bd7bb36108a3c8b3a5edc5c3825a65a.tar.gz |
Convert regex string to raw string
This marks a regex string as a raw string to avoid deprecation warnings.
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
-rw-r--r-- | routes/mapper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/mapper.py b/routes/mapper.py index c113ccc..72981cb 100644 --- a/routes/mapper.py +++ b/routes/mapper.py @@ -409,7 +409,7 @@ class Mapper(SubMapperParent): self.append_slash = False self.sub_domains = False self.sub_domains_ignore = [] - self.domain_match = '[^\.\/]+?\.[^\.\/]+' + self.domain_match = r'[^\.\/]+?\.[^\.\/]+' self.explicit = explicit self.encoding = 'utf-8' self.decode_errors = 'ignore' |