diff --git a/lib/VersionHistory/getFieldLabels.js b/lib/VersionHistory/getFieldLabels.js index ecf68752..34e304bd 100644 --- a/lib/VersionHistory/getFieldLabels.js +++ b/lib/VersionHistory/getFieldLabels.js @@ -8,7 +8,7 @@ export const getFieldLabels = (intl, paths, labelsMap = {}, hiddenFields = []) = return paths.reduce((acc, path) => { const fieldLabel = labelsMapEntries.find(([fieldPath]) => { - const regex = new RegExp(`^${escapeRegExp(fieldPath).replace('\\\\d', '\\d')}$`); + const regex = new RegExp(`^${escapeRegExp(fieldPath).replaceAll('\\\\d', '\\d')}$`); return regex.test(path); })?.[1] || path;