Jörn Zaefferer
d865e4c5b8
Methods: Fix tests for email method. Follow-up to dd162ae
2014-01-14 15:30:20 +01:00
Jörn Zaefferer
dd162ae360
Methods: Update email to use HTML5 regex, remove email2 method
...
The regex provided by the HTML5 spec allows email addresses without a top level
domain, like name@localhost. That makes the email2 method pointless.
Hopefully this is the last time the email methods ever has to be updated. At
least it will make bug triage easier: If you don't like the implementation,
report an issue against the HTML5 spec.
Fixes gh-828
Closes gh-753
Closes gh-739
2014-01-14 15:27:29 +01:00
Pat Heard
d7a05b1c26
Add qunit tests for conditional validation rules
...
Updated tests for require_from_group and skip_or_fill_minimum rules.
The tests now check that other validation rules on the form are
enforced.
2013-12-02 10:25:07 -05:00
Alfonso Martín
317c20fa9b
Added NIF, NIE and CIF Spanish documents numbers validation
...
* Added some translations to /localization
* Added test suite
Fixes gh-830
2013-08-22 01:06:08 -04:00
Nick Schonning
519bbc656b
phoneUS: Add N11 exclusions. Closes gh-861
...
Numbers like 911 and 411 cannot be used for area or exchange codes.
https://en.wikipedia.org/wiki/NANPA#Numbering_system
2013-08-21 10:33:26 +02:00
Andrew Ray
f5f47c5c66
Restricting credit card validator to include length check. Closes gh-772
...
Without this, '41111' is considered a valid credit card number.
2013-06-25 11:39:47 +02:00
g1smd
d447b41b83
Update phonesUK and mobileUK to accept new prefixes. Closes gh-750
2013-05-22 12:53:42 +02:00
Jörn Zaefferer
b51e86f558
Add extra unit test for zipcodeUS method, based on GH comment
2013-05-20 15:53:31 +02:00
rstaib
ed51405d84
Add validation method for BIC. Closes gh-743
2013-05-14 18:11:41 +02:00
Strand McCutchen
165005d4b5
Verify nine-digit zip codes. Closes gh-726
2013-05-12 15:17:16 +02:00
Veres Lajos
f79e647f9f
typo fixes
2013-05-08 14:35:26 +01:00
James Thompson
bbbf87903d
Improved the UK postcode method to filter out more invalid postcodes. Closes #682
...
Old one allows integers between 5-7 digits which is not valid.
New one is still case insensitive and allows spaces & fixes the above issue.
2013-03-20 12:19:20 +01:00
jzaefferer
4a51e71c6f
Fix typos
2013-03-07 13:55:35 +01:00
Robbert Wethmar
509e6e3619
Add additional, dutch-specific methods: phone, mobile, postal, bank and giro account
...
add dutch phone number validation
2013-02-27 15:43:06 +01:00
Robbert Wethmar
581ccd80ec
Added iban validation. Closes gh-630
2013-02-27 14:27:22 +01:00
Jörn Zaefferer
58dece930a
Add tests for phoneUK method
2013-02-27 14:07:05 +01:00
g1smd
45154af738
Updated and corrected GB RegEx pattern. Minor refactor of RegEx pattern. Minor RegEx refactor for efficiency. Fix holes in date validations. Closes gh-514
2013-02-27 13:55:20 +01:00
Jörn Zaefferer
b5cd04e327
Lint test files
2013-01-31 00:28:13 +01:00
Synchro
e4f3a87493
Fix some date validations, JS syntax errors.
2012-11-26 11:48:24 +01:00
g1smd
0b3e34cde9
Optimise RegEx patterns, especially for UK phone numbers.
2012-09-06 16:25:53 +02:00
Max Lynch
55920f0f75
Updated UK Mobile phone number regex for new numbers. Fixes #154
2012-05-07 15:14:00 +02:00
Max Lynch
851e941a60
Fixed regex for time additional method. Fixes #131
2012-05-05 14:19:47 -05:00
Max Lynch
f0b8042233
resetForm now clears old previousValue on form elements. Fixes #312
2012-05-04 10:48:49 -05:00
Max Lynch
c3ce5b4569
Added checkbox test to require_from_group and changed require_from_group to use elementValue. Fixes #359
2012-05-04 11:20:17 +02:00
Max Lynch
a24e58a293
Fixed dataFilter response issues in jQuery 1.5.2+. Fixes #405
2012-05-04 11:13:06 +02:00
Max Lynch
278d3f3b3e
Added US zip code support and test. Fixes #90
2012-04-29 20:34:18 +02:00
Max Lynch
43d963b4ec
Removed number stripping from stripHtml. Fixes #2
2012-04-28 16:48:05 +02:00
Max Lynch
7cc01adbd1
Fixed invalid count on invalid to valid remote validation. Fixes #286
2012-04-28 16:41:28 +02:00
Max Lynch
b475b483f5
Moved old accept method to extension additional-method, added new accept method to handle standard browser mimetype filtering. Fixes #287 and supersedes #369
2012-04-22 23:37:01 -05:00
Max Lynch
58930870c6
Fixed value issue for radio buttons and checkboxes. Fixes #363
2012-04-20 15:09:15 +02:00
Max Lynch
5c2ecd1b76
Added test for rangeWords and fixed regex and bounds in method. Fixes #308
2012-04-20 15:04:57 +02:00
Jörn Zaefferer
1539feb1a2
Use equal assertion, not equal
2012-04-03 18:44:10 +02:00
Jörn Zaefferer
8f8792fd86
Fix whitespace and formatting in additional-methods and tests
2012-04-03 16:24:45 +02:00
Nathan Long
78a739f7c5
Added methods "require_from_group" and "skip_or_fill_minimum"
2012-04-03 16:15:04 +02:00
Max Lynch
f2d525c919
Fixed regex issue for decimals without leading zeroes. Added new methods test. Fixes #41
2012-04-03 12:00:03 +02:00
Max Lynch
85b719b8d3
Fix maxWords method to include the upper bound, not exclude it. Fixes #284
2012-03-29 21:40:19 +02:00
Jörn Zaefferer
c243e8ee88
Update testsuite to use equal and deepEqual. Fix tests that the fix for #219 ( 732f5ff04b) broke. The element method now returns true for dependency-mismatch, that's fine.
2012-02-24 17:58:46 +01:00
gavacho
5dda6daa6c
Pattern method: Convert string param to RegExp. Fixes issue #223
2012-02-23 19:24:54 +01:00
Chris Stainthorpe
cfdb6c3835
Allowed credit card numbers to contain spaces as well as dashes (spaces are commonly input by users). Resolves ( #47 , #39 , #32 )
...
* Changed code to allow spaces
* Amended comment
* Added Qunit tests.
2011-10-05 13:26:40 +01:00
Jörn Zaefferer
3f187a5d01
Fixed #71 - improve existing time method and add time12h method for 12h am/pm time format
2011-09-13 15:45:56 +02:00
Matthew O'Riordan
33336d5461
Improved email method to not allow the dot at the end (valid by RFC, but unwanted here). Fixes #143
2011-08-10 11:13:18 +02:00
Jörn Zaefferer
b009f41fbf
Cleanup whitespace
2011-07-28 20:14:56 +02:00
robertodecurnex
6b8f2c2b15
Adding the patter additional method
2011-07-28 20:13:54 +02:00
jzaefferer
329ad7df84
Use POST as ajax type as that gets uppercased in 1.5.x and now works
...
there and in older versions.
2011-02-26 23:24:25 +01:00
jzaefferer
5bb2441f04
CRLF conversions
2010-05-05 15:52:04 +02:00
Jörn Zaeffferer
7c47463a58
Testsuite bugfixes for compability with jQuery 1.4.2, while maintaining backwards-compability
2010-03-09 18:11:03 +00:00
Jörn Zaeffferer
a69aa5dc6c
Added phoneUK and mobileUK methods to additional-methods.js ( http://plugins.jquery.com/node/12359 )
2010-02-10 10:20:38 +00:00
Jörn Zaeffferer
2677d0c604
* Fixed issue with cached remote message ( http://plugins.jquery.com/node/11029 and http://plugins.jquery.com/node/9351 )
2009-11-30 09:42:57 +00:00
Jörn Zaeffferer
d8781b83de
validation: disabled xxxDE methods tests for now, need to figure out how test localized methods
2009-11-06 15:31:21 +00:00
Jörn Zaeffferer
25bf058bfd
validate: Enhanced min/max/rangeWords (in additional-methods.js) to strip html before counting; good when counting words in a richtext editor
2009-09-15 09:34:52 +00:00