Skip to content

Commit 103c3bd

Browse files
Potential fix for code scanning alert no. 72: Incomplete string escaping or encoding
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 73a547b commit 103c3bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data-migration/src/utils/dataLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async function loadData(dataDir, fileName, isElasticsearch = false, sinceDate =
175175

176176
if (suspiciousReason) {
177177
if (invalidDateBehavior.warn) {
178-
console.warn(`${fileName}: record ${recordIdentifier} has ${suspiciousReason.replace('|', ' & ')} (${parsedDate.toISOString()}); strategy=${invalidDateBehavior.strategy}`);
178+
console.warn(`${fileName}: record ${recordIdentifier} has ${suspiciousReason.replace(/\|/g, ' & ')} (${parsedDate.toISOString()}); strategy=${invalidDateBehavior.strategy}`);
179179
}
180180
if (!invalidDateBehavior.include) {
181181
invalidDateSkippedCount += 1;

0 commit comments

Comments
 (0)