You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the pattern attribute in the schema is always supposed to be a string. However, if we want a regular expression which ignores case, it cannot be done with a string pattern. For example:
pattern: "^Phone" will not match the string "phone"
Even if i change it to "^[Pp]hone" it will not match an input of "PHONE". I would need to use "^[Pp][Hh][Oo][Nn][Ee]" which is ridiculous.
If pattern can be set to /^phone/i or RegExp("^phone", "i") then it will be a lot easier to use.
The text was updated successfully, but these errors were encountered:
Right now the pattern attribute in the schema is always supposed to be a string. However, if we want a regular expression which ignores case, it cannot be done with a string pattern. For example:
pattern: "^Phone" will not match the string "phone"
Even if i change it to "^[Pp]hone" it will not match an input of "PHONE". I would need to use "^[Pp][Hh][Oo][Nn][Ee]" which is ridiculous.
If pattern can be set to /^phone/i or RegExp("^phone", "i") then it will be a lot easier to use.
The text was updated successfully, but these errors were encountered: