mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Fix escaping filename when normalizing in org node parser
This commit is contained in:
@@ -49,7 +49,7 @@ def normalize_filename(filename):
|
||||
normalized_filename = f"~/{relpath(filename, start=Path.home())}"
|
||||
else:
|
||||
normalized_filename = filename
|
||||
escaped_filename = f"{normalized_filename}".replace("[", "\[").replace("]", "\]")
|
||||
escaped_filename = f"{normalized_filename}".replace("[", r"\[").replace("]", r"\]")
|
||||
return escaped_filename
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user