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

Validation problem

Open helloncanella opened this issue 8 years ago • 1 comments

I'm trying todo

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 print true?

helloncanella avatar May 03 '17 20:05 helloncanella

can you send a failing test for this?

sibelius avatar Aug 07 '18 20:08 sibelius