Skip to content

Commit

Permalink
fix: min index in CutLastAny
Browse files Browse the repository at this point in the history
  • Loading branch information
JingYiJun committed May 24, 2024
1 parent 8f61c4a commit d55cea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func CutLastAny(s string, chars string) (before, after string, found bool) {
}
}
if index > 0 {
maxIndex = min(maxIndex, index)
maxIndex = max(maxIndex, index)
}
}
if maxIndex == -1 {
Expand Down

0 comments on commit d55cea0

Please sign in to comment.