mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Fix escaping filename when normalizing in org node parser
This commit is contained in:
parent
5724d16a6f
commit
b51ee644aa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue