remove semicolon
This commit is contained in:
@@ -537,7 +537,7 @@ export const validateMinLength = (val, min) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const validatePattern = (val, rxPattern) => {
|
export const validatePattern = (val, rxPattern) => {
|
||||||
var patt = new RegExp(rxPattern);
|
var patt = new RegExp(rxPattern)
|
||||||
if (!patt.test(val)) {
|
if (!patt.test(val)) {
|
||||||
return "Value must follow pattern " + rxPattern
|
return "Value must follow pattern " + rxPattern
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user