alpha
Login
or
Join now
boltless.me
/
zoekt
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
fork of https://github.com/sourcegraph/zoekt
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Fix '-' inside substrings.
author
Han-Wen Nienhuys
date
10 years ago
(Apr 26, 2016, 2:15 PM +0200)
commit
f0427941
f0427941306efd9b521d24309d306a15f10cd65d
parent
de98be1a
de98be1af94af874c70c9f9ab3b17c95b667cad5
+7
-6
2 changed files
Expand all
Collapse all
Unified
Split
parse.go
parse_test.go
+6
-6
parse.go
Reviewed
···
150
150
for len(b) > 0 {
151
151
c := b[0]
152
152
153
153
-
if c == '-' && !negate {
154
154
-
negate = true
155
155
-
b = b[1:]
156
156
-
continue
157
157
-
}
158
158
-
159
153
if !inWord {
154
154
+
if c == '-' && !negate {
155
155
+
negate = true
156
156
+
b = b[1:]
157
157
+
continue
158
158
+
}
159
159
+
160
160
if q, n, ok, err := tryConsumeCase(b); err != nil {
161
161
return nil, err
162
162
} else if ok {
+1
parse_test.go
Reviewed
···
27
27
}
28
28
29
29
for _, c := range []testcase{
30
30
+
{"sub-pixel", &SubstringQuery{Pattern: "sub-pixel"}, false},
30
31
{"abc", &SubstringQuery{Pattern: "abc"}, false},
31
32
{"\"abc bcd\"", &SubstringQuery{Pattern: "abc bcd"}, false},
32
33
{"abc bcd", &AndQuery{[]Query{