optimize handling of optionals with quantifiers
Merge branch '3.x' of https://github.com/RobinHerbots/jquery.inputmask into 3.x