mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fix DeprecationWarning: invalid escape sequence '\w'
This commit is contained in:
parent
98c32aa24d
commit
dcbbfcfb5e
@ -355,7 +355,7 @@ class SocialPlugin(BasePlugin):
|
||||
# Map available font weights to file paths
|
||||
font = dict()
|
||||
for file in files:
|
||||
match = re.search("-(\w+)\.[ot]tf$", file)
|
||||
match = re.search(r"-(\w+)\.[ot]tf$", file)
|
||||
if match:
|
||||
font[match.group(1)] = os.path.join(self.cache, file)
|
||||
|
||||
|
@ -355,7 +355,7 @@ class SocialPlugin(BasePlugin):
|
||||
# Map available font weights to file paths
|
||||
font = dict()
|
||||
for file in files:
|
||||
match = re.search("-(\w+)\.[ot]tf$", file)
|
||||
match = re.search(r"-(\w+)\.[ot]tf$", file)
|
||||
if match:
|
||||
font[match.group(1)] = os.path.join(self.cache, file)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user