Updated more referencs to constants

This commit is contained in:
2025-01-30 10:47:35 -05:00
parent a63426d965
commit cbd679949f
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ func range2regex(start int, end int) (string, error) {
if startSlc[i] == endSlc[i] {
regex += string(rune(startSlc[i] + 48)) // '0' is ascii value 48, 1 is 49 etc. To convert the digit to its character form, we can just add 48.
} else {
regex += fmt.Sprintf("%c%c-%c%c", lbracketRune, rune(startSlc[i]+48), rune(endSlc[i]+48), RBRACKET)
regex += fmt.Sprintf("%c%c-%c%c", lbracketRune, rune(startSlc[i]+48), rune(endSlc[i]+48), rbracketRune)
}
}
regex += ")"