mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-14 20:35:47 +01:00
All core messages end with periods. But additional/localization messages were previously using them inconsistently. This commit adds message periods to: * Additional files that lacked them * Localization files that were already mostly using them * Italian (it) localization file Didn't add any periods to non-Latin localization files that previously weren't using them at all (AR, bn_BD, he, hy_AM, sd, th, ur, zh and zh_TW).
4 lines
209 B
JavaScript
4 lines
209 B
JavaScript
$.validator.addMethod( "ziprange", function( value, element ) {
|
|
return this.optional( element ) || /^90[2-5]\d\{2\}-\d{4}$/.test( value );
|
|
}, "Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx." );
|