mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-23 06:13:38 -04:00
Fix DeprecationWarning: invalid escape sequence '\w'
This commit is contained in:
committed by
Martin Donath
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user