fix(cli): detect quoted relative paths in _detect_file_drop
Closes #15197
This commit is contained in:
parent
08b8465ca9
commit
c659a16899
1 changed files with 4 additions and 0 deletions
4
cli.py
4
cli.py
|
|
@ -1505,6 +1505,10 @@ def _detect_file_drop(user_input: str) -> "dict | None":
|
|||
or stripped.startswith('"~')
|
||||
or stripped.startswith("'/")
|
||||
or stripped.startswith("'~")
|
||||
or stripped.startswith('"./')
|
||||
or stripped.startswith('"../')
|
||||
or stripped.startswith("'./")
|
||||
or stripped.startswith("'../")
|
||||
or (len(stripped) >= 4 and stripped[0] in ("'", '"') and stripped[2] == ":" and stripped[3] in ("\\", "/") and stripped[1].isalpha())
|
||||
)
|
||||
if not starts_like_path:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue