mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00: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())}"
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue