Bug with text pattern?

Hi!
I trying make custom input mask with pattern property, but it seems looks wrong…

My code: Code Snippet

gif: http://storage2.static.itmages.ru/i/17/0621/h_1498057499_5009681_7b29d880a7.gif

Unfortunately, there’s a limitation: characters specified inmask andallow shouldn’t match. For now, we do not plan to change this behavior.