From 8061a2f108fbbbd3b0419770d6630993800da60e Mon Sep 17 00:00:00 2001 From: onee-only Date: Mon, 4 Mar 2024 12:55:59 +0900 Subject: Remove duplicate code --- src/pattern.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pattern.go') diff --git a/src/pattern.go b/src/pattern.go index 95f23556..bf92ca19 100644 --- a/src/pattern.go +++ b/src/pattern.go @@ -209,11 +209,10 @@ func parseTerms(fuzzy bool, caseMode Case, normalize bool, str string) []termSet // Flip exactness if fuzzy && !inv { typ = termExact - text = text[1:] } else { typ = termFuzzy - text = text[1:] } + text = text[1:] } else if strings.HasPrefix(text, "^") { if typ == termSuffix { typ = termEqual -- cgit v1.2.3