fix(obsidian): make _obsidian_tag docstring a raw string (#2862)

The docstring documents the `\w` regex class; as a non-raw string that is an
invalid escape sequence (DeprecationWarning now, SyntaxError in a future Python).
Mark it raw.
This commit is contained in:
safishamsi
2026-08-19 14:07:48 +01:00
parent 4f104e6e1f
commit 2acc62f38f
+1 -1
View File
@@ -98,7 +98,7 @@ def backup_if_protected(out_dir: Path) -> "Path | None":
return None
def _obsidian_tag(name: str) -> str:
"""Sanitize a community name for use as an Obsidian tag.
r"""Sanitize a community name for use as an Obsidian tag.
Obsidian tags accept letters from any language plus digits, hyphens,
underscores and slashes; spaces and most punctuation are not allowed, and a