string-mask icon indicating copy to clipboard operation
string-mask copied to clipboard

A string formatter and validator based on masks.

Results 10 string-mask issues
Sort by recently updated
recently updated
newest added

Hi, first of all idk a lot of english but i'll do my best. Well the thing is, Im using the validate method to validate mask on ID input, Im...

would you be willing to modernize this code? - [ ] use babel - [x] use es6/7 features - [x] eslint - [x] prettier - [ ] deprecated bower -...

``` var formatter = new StringMask('#0,00%'); var result = formatter.apply('001'); // 0,01% ``` the result is empty. ``` var formatter = new StringMask('#0'); var result = formatter.apply('123'); // 123 ```...

Hi, Could you update your project to accept the new version of the flutter? your plugin is the only one I found to create a mask on a string. The...

Is there a way to get unmasked value?

I'd like to be able to not display characters that are part of the pattern but the input has not reached yet. For instance, I'd like to be able to...

enhancement

I'm trying todo ```javascript var StringMask = require("string-mask") var formatter = new StringMask('UUAA AAAA AAAA AAAA AAAA AAAA AAA'); var result = formatter.apply('FR761111900069410000AA33222'); console.log(formatter.validate(result)) //it prints false ``` Shouldn't it...

Hi, i found a issue, when using a pattern like '9999'. First my object with pattern: ![string-mask](https://user-images.githubusercontent.com/18646672/31613566-cc8f6b6e-b283-11e7-8f5c-f8e5f76a2037.PNG) Now it has following behaviors, which i think aren't correct: ![string-mask number plus...

```js var options = { reverse: true, usedefaults: false } var formatter = new StringMask('+00 (00) 0000-0000', options) ``` Old code; ```js usedefaults: this.options.usedefaults || this.options.reverse ``` OR operator (||)...

``` js format('(###)###-####', "9166163a600" ) format('(000)000-0000', "9166163a600" ) ``` Produces: ``` js AssertionError: '(916)616-3' == '(916)616-3600' + expected - actual - (916)616-3 + (916)616-3600 ```