jaridmargolin / formatter.js

Format html inputs to match a specified pattern
http://firstopinion.github.io/formatter.js
2.48k stars 235 forks source link

Problem with telephone number formating. #69

Open lukasborawski opened 10 years ago

lukasborawski commented 10 years ago

So i have this number in my input value 608291461. Also i have formatter setup to .formatter({ 'pattern': '+48 {{999}} {{999}} {{999}}', 'persistent': true }). After transformation by formatter in my input 8 number from 608 disappears and result is only a +48 602 914 64.

lukasborawski commented 10 years ago

I've add a space between + and 48 and now it's work fine, but this is still bug for me.