Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit be37b6a

Browse files
committed
Fix incorrect message for alphanumeric validator
1 parent f1f97e5 commit be37b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

additional-methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jQuery.validator.addMethod("letterswithbasicpunc", function(value, element) {
3939

4040
jQuery.validator.addMethod("alphanumeric", function(value, element) {
4141
return this.optional(element) || /^\w+$/i.test(value);
42-
}, "Letters, numbers, spaces or underscores only please");
42+
}, "Letters, numbers, and underscores only please");
4343

4444
jQuery.validator.addMethod("lettersonly", function(value, element) {
4545
return this.optional(element) || /^[a-z]+$/i.test(value);

0 commit comments

Comments
 (0)