summaryrefslogtreecommitdiff
path: root/src/pattern_test.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-08-10 23:59:40 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-08-10 23:59:52 +0900
commit02a7b96f33036192abb5816b5860e546e6b4e64e (patch)
treeac1e1ecbbd08db5c7df0979ca08209437857b35d /src/pattern_test.go
parente55e029ae8002c46e117d55bdfcc725b69bc21ef (diff)
downloadfzf-02a7b96f33036192abb5816b5860e546e6b4e64e.tar.gz
Treat $ as proper search query
When $ is the leading character in a query, it's probably not meant to be an anchor.
Diffstat (limited to 'src/pattern_test.go')
-rw-r--r--src/pattern_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pattern_test.go b/src/pattern_test.go
index efb1ef2d..7adc51db 100644
--- a/src/pattern_test.go
+++ b/src/pattern_test.go
@@ -58,7 +58,7 @@ func TestParseTermsExtendedExact(t *testing.T) {
}
func TestParseTermsEmpty(t *testing.T) {
- terms := parseTerms(true, CaseSmart, false, "' $ ^ !' !^ !$")
+ terms := parseTerms(true, CaseSmart, false, "' ^ !' !^")
if len(terms) != 0 {
t.Errorf("%s", terms)
}