This commit is contained in:
@@ -385,8 +385,8 @@ fn is_valid_internal(word: String, length: Int) -> Bool {
|
|||||||
| "y" <> rest -> {
|
| "y" <> rest -> {
|
||||||
case length {
|
case length {
|
||||||
0 -> string.byte_size(rest) >= 2
|
0 -> string.byte_size(rest) >= 2
|
||||||
_ if length > 1 -> True
|
1 -> rest != ""
|
||||||
_ -> rest != ""
|
_ -> True
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"b" <> rest
|
"b" <> rest
|
||||||
|
|||||||
Reference in New Issue
Block a user