@@ -250,15 +250,15 @@ func NewSearchCommitsOptions(searchString string, forAllRefs bool) SearchCommits
250
250
for _ , k := range fields {
251
251
switch {
252
252
case strings .HasPrefix (k , "author:" ):
253
- authors = append (authors , strings .TrimPrefix (k , "author:" ))
253
+ authors = append (authors , strings .ReplaceAll ( strings . TrimSpace ( strings . TrimPrefix (k , "author:" )), "'" , " " ))
254
254
case strings .HasPrefix (k , "committer:" ):
255
- committers = append (committers , strings .TrimPrefix (k , "committer:" ))
255
+ committers = append (committers , strings .ReplaceAll ( strings . TrimSpace ( strings . TrimPrefix (k , "committer:" )), "'" , " " ))
256
256
case strings .HasPrefix (k , "after:" ):
257
- after = strings .TrimPrefix (k , "after:" )
257
+ after = strings .ReplaceAll ( strings . TrimSpace ( strings . TrimPrefix (k , "after:" )), "'" , " " )
258
258
case strings .HasPrefix (k , "before:" ):
259
- before = strings .TrimPrefix (k , "before:" )
259
+ before = strings .ReplaceAll ( strings . TrimSpace ( strings . TrimPrefix (k , "before:" )), "'" , " " )
260
260
default :
261
- keywords = append (keywords , k )
261
+ keywords = append (keywords , strings . ReplaceAll ( strings . TrimSpace ( k ), "'" , "" ) )
262
262
}
263
263
}
264
264
0 commit comments