foolproof
foolproof copied to clipboard
RequireIf RegEx is lost when dependant property is number
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 :
As he detect "value1" as numeric, value2 will be NaN just few line below.
You should not apply all these override logics if "operator" is RexMatch/NotRegExMatch