docs: regexp considerations addition

master
Evgeny Poberezkin 2019-07-19 06:39:20 +01:00
parent 1163e1a089
commit db94b118d4
1 changed files with 1 additions and 1 deletions

View File

@ -682,7 +682,7 @@ __Please note__: some formats that Ajv implements use [regular expressions](http
- making assessment of "format" implementations in Ajv.
- using `format: 'fast'` option that simplifies some of the regular expressions (although it does not guarantee that they are safe).
- replacing format implementations provided by Ajv with your own implementations of "format" keyword that either uses different regular expressions or another approach to format validation.
- replacing format implementations provided by Ajv with your own implementations of "format" keyword that either uses different regular expressions or another approach to format validation. Please see [addFormat](#api-addformat) method.
- disabling format validation by ignoring "format" keyword with option `format: false`
Whatever mitigation you choose, please assume all formats provided by Ajv as potentially unsafe and make your own assessment of their suitability for your validation scenarios.