Fixing user menu reg exp issue

merge-requests/7/head
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