We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 122b35e commit fba371dCopy full SHA for fba371d
src/regexp/syntax/parse.go
@@ -382,14 +382,12 @@ func minFoldRune(r rune) rune {
382
if r < minFold || r > maxFold {
383
return r
384
}
385
- min := r
+ m := r
386
r0 := r
387
for r = unicode.SimpleFold(r); r != r0; r = unicode.SimpleFold(r) {
388
- if min > r {
389
- min = r
390
- }
+ m = min(m, r)
391
392
- return min
+ return m
393
394
395
// op pushes a regexp with the given op onto the stack
0 commit comments