diff --git a/material/plugins/social/plugin.py b/material/plugins/social/plugin.py index 7af9a7f72..048ab988e 100644 --- a/material/plugins/social/plugin.py +++ b/material/plugins/social/plugin.py @@ -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) diff --git a/src/plugins/social/plugin.py b/src/plugins/social/plugin.py index 7af9a7f72..048ab988e 100644 --- a/src/plugins/social/plugin.py +++ b/src/plugins/social/plugin.py @@ -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)