Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
the input should be boolean(false, true), "lol" is not a boolean.
what about bool("lol") ... it will return "No"
No problem. Glad you enjoy the Kata :)
I see, it also totally makes sense, since it is a "minimum requirement" that should be checked ...
After your update of the kata and after realizing that myself right after, I changed my restricted charset to .* instead and directly got all green,
Thank you also for explaining that clearly as well.
Have a nice day!
That's correct. The password could contains a quote
Yes, but it doesn't matter. Your regex should validate whether a certain charClass exist, along with their minimum amount. The rest of the password can be anything.
Think of it like a common password requirement. They may require your password to contains digits and uppercase letters. But that doesn't mean your password should only contain digits and uppercase letters.
Edit:
I tried it, now it seems to work fine, nice!
For me, all passed very fast as well ... before you fixed it, it took the full 12s and crashed, now its done in like 1-2 seconds including network.
Whatever the issue was and whatever you changed, it did improve the quality of the kata greatly!
Good job!
I just re-checked the random test and you're right, they almost always overlap. Turned out there was a bug in the charClass generator.
The bug has been fixed, now they should never overlap. Thanks for catching that!
This comment is hidden because it contains spoiler information about the solution
what is this magic? :D
XD
I'd rather slap myself in the face 3 hours before writing that "thing" 30 minutes!
for sure BEST PRACTICE!
Readability 100% :D
hahahah :D
You saved my day from depression with that one ... :D