Skip to content

Commit

Permalink
Use replace() instead of replaceAll() to support Node v14.
Browse files Browse the repository at this point in the history
  • Loading branch information
chibacchie committed Dec 3, 2024
1 parent 7676d0d commit c98196f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/validator-ajv8/src/processRawValidationErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function transformRJSFValidationErrors<
let uiSchemaTitle = getUiOptions(get(uiSchema, `${property.replace(/^\./, '')}`)).title;
if (uiSchemaTitle === undefined) {
const uiSchemaPath = schemaPath
.replaceAll('/properties/', '/')
.replace(/\/properties\//g, '/')
.split('/')
.slice(1, -1)
.concat([currentProperty]);
Expand Down

0 comments on commit c98196f

Please sign in to comment.