Comparing version 8.8.1 to 8.8.2
@@ -73,5 +73,6 @@ "use strict"; | ||
const { regExp } = opts.code; | ||
const rx = regExp(pattern, u); | ||
return gen.scopeValue("pattern", { | ||
key: pattern, | ||
ref: regExp(pattern, u), | ||
key: rx.toString(), | ||
ref: rx, | ||
code: (0, codegen_1._) `${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`, | ||
@@ -78,0 +79,0 @@ }); |
@@ -98,6 +98,7 @@ import type {AnySchema, SchemaMap} from "../types" | ||
const {regExp} = opts.code | ||
const rx = regExp(pattern, u) | ||
return gen.scopeValue("pattern", { | ||
key: pattern, | ||
ref: regExp(pattern, u), | ||
key: rx.toString(), | ||
ref: rx, | ||
code: _`${regExp.code === "new RegExp" ? newRegExp : useFunc(gen, regExp)}(${pattern}, ${u})`, | ||
@@ -104,0 +105,0 @@ }) |
{ | ||
"name": "ajv", | ||
"version": "8.8.1", | ||
"version": "8.8.2", | ||
"description": "Another JSON Schema Validator", | ||
@@ -5,0 +5,0 @@ "main": "dist/ajv.js", |
Sorry, the diff of this file is not supported yet
1009162
19769