Untitled

mail@pastecode.io avatar
unknown
plain_text
21 days ago
304 B
1
Indexable
Never
Validator.register('alphaNumericCheck', function (value, requirement) {
    var pattern = /^[A-Za-z0-9-' ]+$/;
    return pattern.test(value);
});

Validator.register('alphaNumericCheck2', function (value, requirement) {
    var pattern = /^[A-Za-z0-9]+$/;
    return pattern.test(value);
});

Leave a Comment