mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-05 12:00:17 +00:00
7 lines
258 B
Fish
7 lines
258 B
Fish
|
set -l strings "https://github.com/foo/foo" "/Users/foo/bar/baz"
|
||
|
set -l escaped "https:\/\/github.com\/foo\/foo" "\/Users\/foo\/bar\/baz"
|
||
|
|
||
|
test "$TESTNAME - Escape slases in paths and url"
|
||
|
(printf "%s\n" $strings | __fisher_string_escape) = $escaped
|
||
|
end
|