Christopher Stieg
e837cc49be
Core: Allow negative decimal with no 0 ( #2483 )
...
* Core: Allow negative decimal with no 0
* Update regex
---------
Co-authored-by: METALCOMPINC\cstieg <cstieg@metalcompinc.com >
Co-authored-by: Kieran <kieran.brahney@gmail.com >
2024-06-29 11:11:15 +01:00
Sylvain Monné
569e62234c
Core: fix remote validation when input is the same as in aborted request ( #2481 )
...
Fixes #2479
2024-04-21 09:59:31 +01:00
Sylvain Monné
98fbc5f428
Core: remove pending class from fields with an aborted request ( #2436 )
...
Ref #2434
Ref #2435
Co-authored-by: Sylvain Monné <sylvain@monne.me >
2022-07-17 12:21:36 +01:00
Sylvain Monné
980087a897
Core: fix race condition in remote validation rules ( #2435 )
...
Fixes #2434
Co-authored-by: Sylvain Monné <sylvain@monne.me >
2022-07-15 22:26:56 +01:00
Kieran
5bbd80d27f
Merge pull request from GHSA-ffmh-x56j-9rc3
...
(cherry picked from commit a3908cc082465000a3afa4bed47418b6e02c14ed)
2022-07-01 17:00:37 +02:00
Kieran
69cb17ed77
Core: fix ReDoS vulnerability in url2 ( #2428 )
2022-05-19 16:20:09 +01:00
jehadja
3242f0f3e7
Additional: Add validation rule for mobile number of Russia Federation ( #2207 )
2018-11-06 19:53:31 +00:00
Julio Spader
743077cf29
Additional: Add Brazillian CNPJ validation rule ( #2222 )
2018-11-05 20:59:39 +00:00
Cleiton da Silva Mendonça
01ce49cf36
Additional: Add Brazillian PIS/NIS number validation method ( #2204 )
2018-08-21 14:04:07 +01:00
Brahim Arkni
2037129e00
Core: Don't call submitHandler when in debug mode ( #2193 )
...
Fixes #2042
2018-07-29 15:58:24 +01:00
Keith Morrison
fc25612ef0
Additional: allow N11 exchange for non-geo US phone. Fixes #1695 ( #2098 )
2018-02-14 09:04:06 +01:00
Lukasz
de806ce0f0
Test: Add tests for phonePL method
2018-02-13 22:57:53 +00:00
Rob Johnston
5ecd6c261f
Additional: Add new BIN range for MasterCard. ( #2088 )
...
Fixes #1904
2017-10-09 13:46:58 +01:00
Rob Johnston
7e9e4788bf
Additional: max size and number of files ( #2087 )
...
This commit contains:
* Validate max number and size of file(s).
* Add tests for max number and size of file(s).
2017-10-08 21:25:24 +01:00
Rob Johnston
38cb9b9c8c
Additional: Add greaterThan and lessThan methods. ( #2061 )
...
* Tests: Add tests for integers.
* Core: Unbind the event and remove the class name.
* Test: Test binding of blur event.
* Test: Test binding of blur event.
2017-09-19 23:21:26 +02:00
Dominik Krzywiecki
31176a239a
Additional: Polish tax id validation method ( #1850 )
2017-02-11 20:58:56 +01:00
jarey
7457cc6401
Additional: Fixed validation for specific case for Spanish NIFs. ( #1914 )
2017-01-28 12:48:57 +01:00
Alfonso Martin
e7422d6d1e
Additional: Refine cifES and nieES algorithms ( #1826 )
2016-12-01 16:15:22 +01:00
Brahim Arkni
8fe4a90185
Tests: Upgrade QUnit to 2.0.
...
Closes #1777 . #1681 .
2016-07-22 17:56:18 +02:00
Torgny Bjers
cb6068110c
Tests: Added regression unit tests for PR #1760
...
Testing small fraction steps to ensure correct modulo operation.
Cleaned up @adhayward's formatting, was using spaces instead of tabs.
2016-07-15 16:10:00 +02:00
Brahim Arkni
b9d5d80f3f
Additional: Fix multiple mime-type validation
...
Fixes #1775 . Closes #1779 .
2016-06-14 17:32:26 +02:00
Michael Hohlovich
7b8a0face3
Additional: IBAN require at least 5 chars. Closes #1797 . Fixes #1674 .
2016-06-14 17:29:09 +02:00
Lars Skjelbek
e9fd71d89b
Core: Unhighlighting field if already highlighted when using remote rule.
...
Closes #1712 . Refs #1669 , #1375 , #12 .
2016-02-19 15:52:34 +01:00
Štefan Baebler
9ab4b8c32f
Additional: BIC: allow digits 1-9 in second place of location
...
It seems that the BIC specification https://en.wikipedia.org/wiki/ISO_9362
was interpreted too strictly, only allowing digits 1 and 2 while those 2 just
have a special meaning, but all 1-9 are allowed.
Example: SSKNDE77XXX Sparkasse Nuernberg. Closes #1658 .
2016-01-28 18:20:01 +01:00
Markus Staab
9d00c2b9ff
Tests: added coverage for #697 (Arkni).
2016-01-07 17:41:53 +01:00
Lukasz Wozniak
4ebe40d1b2
Core: Fixed field highlighting with remote validation.
...
Prevent remote validation from removing highlight from other invalid fields.
Closes #1584 .
2016-01-07 17:29:42 +01:00
Michal Moravec
9962f627c0
Additionals: Accept method regex should be escaped properly.
...
This adds support for types like "application/epub+zip"
which contain regex meta characters.
Fixes #1243 , #1258 . Closes #1531 , #1373 . Refs #1512 .
2015-11-26 08:58:12 +01:00
Filip Mares
b3c07e3957
Core: HTML5 step attribute support. Fixes #1295
2015-11-12 10:14:36 +01:00
Brahim Arkni
3f3fb8c2ed
Test: extend BIC unit test to support lowercased BIC values
2015-11-09 09:24:31 +01:00
Brahim Arkni
729823a807
All: Fixed code style issues
2015-10-30 23:55:26 +00:00
Brahim Arkni
7143d5197e
Tests: uncomment require_from_group & skip_or_fill_minimum tests
2015-10-30 15:07:38 +00:00
Saldanha
c52da5ba98
Test: Added test for "pending" remote status
2015-10-29 17:20:53 -04:00
Brahim Arkni
f0144b56b9
Core: Split out creditcard method
...
As mentioned by Jörn in #1506
2015-10-21 22:48:06 +01:00
Brahim Arkni
842e7ff5dd
Test: Fix misuse of equal method & some spacing issues.
2015-09-25 16:54:38 +01:00
Christopher Bauer
5679ad7bba
Core: method.js fix tests for #1567
...
Incorrect tests were rebased.
2015-09-11 11:53:18 -04:00
Christopher Bauer
17a56baa6f
Core: core.js, methods.js, Fix for #1567 - jquery-validation ignores data obj when validating, incorrectly returning previous status
...
This change determines if either the validated element's value OR one of the data properties has changed before aborting the remote request. If your remote validation is skipped due to being dependent on the value of another field, this fixes that issue.
2015-09-11 09:07:43 -04:00
Thomas Gohard
361d6e8f56
Additionals: Correct postalCodeCA to exclude invalid combinations
2015-07-23 15:43:51 -04:00
Thomas Gohard
705e98116c
Additionals: Make postalCodeCA method more lenient
2015-07-23 14:11:11 -04:00
Jörn Zaefferer
f33690b8a5
Core: Replace regex for url method
...
Making private IPs invalid is fine, and I've modified it to keep
allowing protocol-relative urls.
Fixes #1426
2015-06-30 16:38:27 +02:00
Jörn Zaefferer
72217266b6
Tests: Fix lint issues
2015-06-30 16:20:04 +02:00
Jörn Zaefferer
64cb211178
Tests: Disable very slow additional methods tests
...
The methods themselves are mostly broken anyway, should extract into a
separate project.
2015-06-30 14:32:46 +02:00
Jörn Zaefferer
b7f3642e8a
Tests: Remove slow and useless remote method tests
2015-06-30 14:29:49 +02:00
Yair Sladowsky
3c759331f5
Core: Update url method to allow for protocol-relative URLs
...
Closes #1510
2015-06-30 14:20:14 +02:00
Florent
c5ac242eef
Additionals: Update time method to allow single digit hour
...
Closes #1461
2015-06-16 20:16:10 +02:00
Jörn Zaefferer
bb85279297
Tests: Make sure long TLDs work fine for email and url methods
2015-06-16 19:56:42 +02:00
Jörn Zaefferer
2ad0ca82da
Core: Stop trimming value inside required method
...
There was never much of a point anyway, and it causes problems.
Fixes #1498
2015-06-16 19:50:11 +02:00
Jörn Zaefferer
60dd41053d
Additionals: Drop bad test for notEqualTo method
2015-02-17 12:12:30 +01:00
Daniel DeGroff
c4b891e837
Additionals: Add notEqualTo method
...
New method ‘notEqualTo’ that delegates to the equalTo method and
returns the inverted value.
Closes #1020
2015-02-17 12:04:24 +01:00
wozzo
02b800d9af
Core: Fixed number validation error
...
A single minus sign is invalid.
Fixes #1359
Closes #1361
2015-01-20 16:46:57 +01:00
Nadi
89034eb4d4
Additionals: Brazilian CPF number
...
Closes #1310
2014-11-11 22:33:42 +01:00