summaryrefslogtreecommitdiff
path: root/src/pattern.go
diff options
context:
space:
mode:
authorbitraid <bitraid@protonmail.ch>2025-02-11 16:19:40 +0200
committerGitHub <noreply@github.com>2025-02-11 23:19:40 +0900
commit282884ad83c9aae32519d9bb3b7d685319c26639 (patch)
tree06c062152de196b63dc41f34c04c1eccc223cae5 /src/pattern.go
parent7877ac42f034bc6ef1ad7fa2cfeae367aa0762fb (diff)
downloadfzf-282884ad83c9aae32519d9bb3b7d685319c26639.tar.gz
[fish] Unescape query from commandline (#4236)
More natural processing of the query taken from command line, by unquoting/unescaping the token. Unescaped open quotes are removed. Because of how `string unescape` works, if both single and double quotes are present, with the outer quotes open, only the outer quotes are removed. Examples: `'foo bar'`, `"foo bar"`, `foo\ bar` becomes `foo bar` `"foobar`, `'foobar`, `foo"bar`, `foo'bar` becomes `foobar` `'"foo"'`, `'"foo"` becomes `"foo"` `"'foo'"`, `"'foo'` becomes `'foo'` `"'foo` becomes `'foo` `'"foo` becomes `"foo`
Diffstat (limited to 'src/pattern.go')
0 files changed, 0 insertions, 0 deletions