mirror of
https://github.com/safishamsi/graphify.git
synced 2026-08-27 00:36:39 +00:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user