Skip to content

Commit 988f750

Browse files
authored
Merge pull request #1754 from contentstack/fix/2147-hotfix
SRE fix
2 parents d19a17c + 9ec4813 commit 988f750

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/contentstack-import/src/utils/entries-helper.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import * as fileHelper from './file-helper';
1010
import { escapeRegExp, validateRegex } from '@contentstack/cli-utilities';
1111

1212
import { EntryJsonRTEFieldDataType } from '../types/entries';
13+
import { log } from './log';
1314

1415
// update references in entry object
1516
export const lookupEntries = function (
@@ -212,6 +213,8 @@ export const lookupEntries = function (
212213
if (status === 'safe') {
213214
entry = entry.replace(uidRegex, escapedMappedUid);
214215
mapped.push(uid);
216+
} else {
217+
log(`Skipping the entry uid ${uid} since the regex is not valid`, 'warn');
215218
}
216219
} else {
217220
unmapped.push(uid);

0 commit comments

Comments
 (0)