perf: Change .length to .byte_size
Some checks failed
test / test (push) Has been cancelled

This commit is contained in:
2025-11-04 14:15:21 +00:00
parent 5feb4de7a4
commit b30c9f39fd

View File

@@ -362,7 +362,7 @@ fn is_valid_internal(word: String, length: Int) -> Bool {
| "o" <> rest
| "u" <> rest
| "y" <> rest -> {
{ length + 1 + string.length(rest) } >= 3
{ length + 1 + string.byte_size(rest) } >= 3
}
_ -> {
is_valid_internal(string.drop_start(word, 1), length + 1)