react-input-mask
react-input-mask copied to clipboard
Regular expressions NOT WORK!
This example does not work at all!
// Canadian postal code mask
const firstLetter = /(?!.*[DFIOQU])[A-VXY]/i;
const letter = /(?!.*[DFIOQU])[A-Z]/i;
const digit = /[0-9]/;
const mask = [firstLetter, digit, letter, " ", digit, letter, digit];
return <InputMask mask={mask} />;
AndreyZavarin
I have also been testing all day today and it did not work with regex, but I realized now that I was looking at the version 3.0 documentation, but actually at the moment the stable version is version 2, I will test with version 2 now if it works.
https://github.com/sanniassin/react-input-mask/issues/197
Please any updates on this issue? @reintroducing @ErikGMatos
@SomtoUgeh did you read the comments above?
@reintroducing Yes I did .. I am still experiencing the same issue .. I asked to get updates as regards the test he said he was going to perform
Still the same!
+1
+1
+1
Maybe let's do a fork and fix it? cause this lib seems to be nice even in 2022