Skip to content

Commit 12321b9

Browse files
committed
Use replace() instead of replaceAll() to support Node v14.
1 parent 06507ce commit 12321b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/validator-ajv8/src/processRawValidationErrors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function transformRJSFValidationErrors<
4343
let uiSchemaTitle = getUiOptions(get(uiSchema, `${property.replace(/^\./, '')}`)).title;
4444
if (uiSchemaTitle === undefined) {
4545
const uiSchemaPath = schemaPath
46-
.replaceAll('/properties/', '/')
46+
.replace(/\/properties\//g, '/')
4747
.split('/')
4848
.slice(1, -1)
4949
.concat([currentProperty]);

0 commit comments

Comments
 (0)