We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 839eb0e commit 39f21adCopy full SHA for 39f21ad
pkg/cmd/pr/shared/params.go
@@ -228,23 +228,23 @@ func SearchQueryBuild(options FilterOptions) string {
228
}
229
230
func splitKeywords(keywords string) []string {
231
- a := []string{}
+ ks := []string{}
232
sb := &strings.Builder{}
233
quoted := false
234
for _, r := range keywords {
235
- if r == '"' || r == '\'' {
+ if r == '"' {
236
quoted = !quoted
237
} else if !quoted && r == ' ' {
238
- a = append(a, sb.String())
+ ks = append(ks, sb.String())
239
sb.Reset()
240
} else {
241
sb.WriteRune(r)
242
243
244
if sb.Len() > 0 {
245
246
247
- return a
+ return ks
248
249
250
func QueryHasStateClause(searchQuery string) bool {
0 commit comments