Fixing user menu reg exp issue

4.x.x
dilanua 8 years ago
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…
Cancel
Save