That's the whole trick, and it's worth, I think, making the tool scream loudly when the check fails.
The tool actually handles all of this.

It just says "
Invalid minikey, typo?" when the checksum failed though.
It's not loud enough for him. (
jk)
Anyways, I think the length should be 30 by default since the previous 22 is depreciated.
Even if its "
generate" feature is suggested to use for testing purposes only, some people will undoubtedly use it given that it's now referenced in mini private key Bitcoin Wiki article. (
ref)