You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fisher/test/string-escape.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