Skip to content

Commit

Permalink
breaking the loop incase ASCII character is found
Browse files Browse the repository at this point in the history
Signed-off-by: RA <ranveeravhad777@gmail.com>
  • Loading branch information
Ranveer777 committed Jun 3, 2024
1 parent 1a6e7e4 commit ba92b80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions model/labels/regexp.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,7 @@ func toNormalisedLower(s string) string {
c := s[i]
if isASCII && c >= utf8.RuneSelf {
isASCII = false
break
}
if 'A' <= c && c <= 'Z' {
c += 'a' - 'A'
Expand Down
Loading

0 comments on commit ba92b80

Please sign in to comment.