Skip to content
Merged

SRE fix #1754

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/contentstack-import/src/utils/entries-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import * as fileHelper from './file-helper';
import { escapeRegExp, validateRegex } from '@contentstack/cli-utilities';

import { EntryJsonRTEFieldDataType } from '../types/entries';
import { log } from './log';

// update references in entry object
export const lookupEntries = function (
Expand Down Expand Up @@ -212,6 +213,8 @@ export const lookupEntries = function (
if (status === 'safe') {
entry = entry.replace(uidRegex, escapedMappedUid);
mapped.push(uid);
} else {
log(`Skipping the entry uid ${uid} since the regex is not valid`, 'warn');
}
} else {
unmapped.push(uid);
Expand Down