foolproof icon indicating copy to clipboard operation
foolproof copied to clipboard

RequireIf RegEx is lost when dependant property is number

Open Bubleguy opened this issue 6 years ago • 0 comments

To reproduce : Declare Field1 is required when Field2 match the following regular expression ^[a-zA-Z0-9]{0,10}$

See the debug progress in latest Chromeversion :

image

As he detect "value1" as numeric, value2 will be NaN just few line below.

image

You should not apply all these override logics if "operator" is RexMatch/NotRegExMatch

Bubleguy avatar May 28 '18 12:05 Bubleguy