validate-value
Advanced tools
Comparing version 8.5.0 to 8.6.0
@@ -69,2 +69,7 @@ "use strict"; | ||
} | ||
case 'pattern': { | ||
const { pattern } = error.params; | ||
message = `String does not match pattern: ${pattern}`; | ||
break; | ||
} | ||
default: { | ||
@@ -71,0 +76,0 @@ // Intentionally left blank. |
@@ -0,1 +1,8 @@ | ||
# [8.6.0](https://github.com/thenativeweb/validate-value/compare/8.5.0...8.6.0) (2020-11-25) | ||
### Features | ||
* Improve error messages for regex. ([#223](https://github.com/thenativeweb/validate-value/issues/223)) ([6c32e5f](https://github.com/thenativeweb/validate-value/commit/6c32e5f89305b5387be5b13e04c48cdc90fd648c)) | ||
# [8.5.0](https://github.com/thenativeweb/validate-value/compare/8.4.0...8.5.0) (2020-11-20) | ||
@@ -2,0 +9,0 @@ |
@@ -100,2 +100,10 @@ import Ajv from 'ajv'; | ||
case 'pattern': { | ||
const { pattern } = error.params as Ajv.PatternParams; | ||
message = `String does not match pattern: ${pattern}`; | ||
break; | ||
} | ||
default: { | ||
@@ -102,0 +110,0 @@ // Intentionally left blank. |
{ | ||
"name": "validate-value", | ||
"version": "8.5.0", | ||
"version": "8.6.0", | ||
"description": "validate-value validates values against JSON schemas.", | ||
@@ -31,4 +31,4 @@ "contributors": [ | ||
"assertthat": "5.2.5", | ||
"roboter": "11.5.11", | ||
"semantic-release-configuration": "1.0.26" | ||
"roboter": "11.5.13", | ||
"semantic-release-configuration": "1.0.28" | ||
}, | ||
@@ -35,0 +35,0 @@ "repository": { |
22858
345