nu-cli/completions: better fix for files with special characters (#5254)

* nu-cli/completions: fix paths with special chars

* add backticks

* fix replace

* added single quotes to check list

* check escape using fold

* fix clippy errors

* fix comment line

* fix conflicts

* change to vec

* skip sort checking

* removed invalid windows path

* remove comment

* added tests for escape function

* fix fn import

* fix fn import error

* test windows issue fix

* fix windows backslash path in the tests

* show expected path on error

* skip test for windows
This commit is contained in:
Herlon Aguiar
2022-04-28 15:36:32 +02:00
committed by GitHub
parent d2bc2dcbb2
commit 3cf3329e49
5 changed files with 113 additions and 19 deletions

View File