react-input-mask icon indicating copy to clipboard operation
react-input-mask copied to clipboard

Regular expressions NOT WORK!

Open AndreyZavarin opened this issue 6 years ago • 10 comments

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 avatar Nov 28 '19 14:11 AndreyZavarin

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.

ErikGMatos avatar Jan 13 '20 21:01 ErikGMatos

https://github.com/sanniassin/react-input-mask/issues/197

reintroducing avatar Jan 18 '20 14:01 reintroducing

Please any updates on this issue? @reintroducing @ErikGMatos

SomtoUgeh avatar Feb 06 '20 11:02 SomtoUgeh

@SomtoUgeh did you read the comments above?

reintroducing avatar Feb 06 '20 14:02 reintroducing

@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

SomtoUgeh avatar Feb 06 '20 15:02 SomtoUgeh

Still the same!

Multi-Thinker avatar Nov 01 '20 14:11 Multi-Thinker

+1

AndrejGajdos avatar Jan 15 '21 13:01 AndrejGajdos

+1

priyankadevgan1992 avatar Apr 07 '22 14:04 priyankadevgan1992

+1

gfox-dev avatar Dec 14 '22 17:12 gfox-dev

Maybe let's do a fork and fix it? cause this lib seems to be nice even in 2022

gfox-dev avatar Dec 14 '22 17:12 gfox-dev