mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 05:39: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())}"
|
normalized_filename = f"~/{relpath(filename, start=Path.home())}"
|
||||||
else:
|
else:
|
||||||
normalized_filename = filename
|
normalized_filename = filename
|
||||||
escaped_filename = f"{normalized_filename}".replace("[", "\[").replace("]", "\]")
|
escaped_filename = f"{normalized_filename}".replace("[", r"\[").replace("]", r"\]")
|
||||||
return escaped_filename
|
return escaped_filename
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user