Fixing user menu reg exp issue

revert-70aa11f8
dilanua 8 years ago
parent 106051a0a5
commit fcff1f0854

@ -6,6 +6,7 @@
* @returns {boolean} Returns true if input matches RegEx
*/
function inputIsValid(regExp, inputString) {
regExp = new RegExp(regExp);
return regExp.test(inputString);
}

Loading…
Cancel
Save