mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing user menu reg exp issue
This commit is contained in:
parent
106051a0a5
commit
fcff1f0854
@ -6,6 +6,7 @@
|
|||||||
* @returns {boolean} Returns true if input matches RegEx
|
* @returns {boolean} Returns true if input matches RegEx
|
||||||
*/
|
*/
|
||||||
function inputIsValid(regExp, inputString) {
|
function inputIsValid(regExp, inputString) {
|
||||||
|
regExp = new RegExp(regExp);
|
||||||
return regExp.test(inputString);
|
return regExp.test(inputString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user