Files
jquery-validation-mirror/src/additional/ziprange.js
EricDunsworth 1b79877af7 Localization: Add periods to messages (#2266)
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).
2022-05-23 11:50:05 +01:00

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." );