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