Skip to content

Commit 784e52a

Browse files
authored
docs(matches): add ReDoS note to README (#2640)
1 parent 6531047 commit 784e52a

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1+
# 13.15.26
2+
3+
### Fixes, New Locales and Enhancements
4+
5+
- [#2535](https://github.com/validatorjs/validator.js/pull/2535) `isHexColor`: add `require_hashtag` option @Numbers0689
6+
- [#2633](https://github.com/validatorjs/validator.js/pull/2633) `isURL`: handle possible bypass with URL-encoded content @WikiRik
7+
- [#2634](https://github.com/validatorjs/validator.js/pull/2634) `isIBAN`: improve `IR` locale @ds1371dani
8+
- **Doc fixes and others:**
9+
- [#2640](https://github.com/validatorjs/validator.js/pull/2640) @WikiRik
10+
111
# 13.15.23
212

313
### Fixes, New Locales and Enhancements
414

515
- **Doc fixes and others:**
616
- [#2631](https://github.com/validatorjs/validator.js/pull/2631) @WikiRik
717

8-
918
# 13.15.22
1019

1120
### Fixes, New Locales and Enhancements

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Validator | Description
173173
**isVariableWidth(str)** | check if the string contains a mixture of full and half-width chars.
174174
**isVAT(str, countryCode)** | check if the string is a [valid VAT number][VAT Number] if validation is available for the given country code matching [ISO 3166-1 alpha-2][ISO 3166-1 alpha-2]. <br/><br/>`countryCode` is one of `['AL', 'AR', 'AT', 'AU', 'BE', 'BG', 'BO', 'BR', 'BY', 'CA', 'CH', 'CL', 'CO', 'CR', 'CY', 'CZ', 'DE', 'DK', 'DO', 'EC', 'EE', 'EL', 'ES', 'FI', 'FR', 'GB', 'GT', 'HN', 'HR', 'HU', 'ID', 'IE', 'IL', 'IN', 'IS', 'IT', 'KZ', 'LT', 'LU', 'LV', 'MK', 'MT', 'MX', 'NG', 'NI', 'NL', 'NO', 'NZ', 'PA', 'PE', 'PH', 'PL', 'PT', 'PY', 'RO', 'RS', 'RU', 'SA', 'SE', 'SI', 'SK', 'SM', 'SV', 'TR', 'UA', 'UY', 'UZ', 'VE']`.
175175
**isWhitelisted(str, chars)** | check if the string consists only of characters that appear in the whitelist `chars`.
176-
**matches(str, pattern [, modifiers])** | check if the string matches the pattern.<br/><br/>Either `matches('foo', /foo/i)` or `matches('foo', 'foo', 'i')`.
176+
**matches(str, pattern [, modifiers])** | check if the string matches the pattern.<br/><br/>Either `matches('foo', /foo/i)` or `matches('foo', 'foo', 'i')`.<br/>**Note:** The pattern is not checked for possible ReDoS attacks. We do not recommend that the user can provide their own pattern.
177177

178178
## Sanitizers
179179

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "validator",
33
"description": "String validation and sanitization",
4-
"version": "13.15.23",
4+
"version": "13.15.26",
55
"sideEffects": false,
66
"homepage": "https://github.com/validatorjs/validator.js",
77
"files": [

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ import isStrongPassword from './lib/isStrongPassword';
130130

131131
import isVAT from './lib/isVAT';
132132

133-
const version = '13.15.23';
133+
const version = '13.15.26';
134134

135135
const validator = {
136136
version,

0 commit comments

Comments
 (0)