diff --git a/src/shell-integration/helpers.js b/src/shell-integration/helpers.js index 485035e..7efface 100644 --- a/src/shell-integration/helpers.js +++ b/src/shell-integration/helpers.js @@ -28,7 +28,7 @@ export function removeLinesMatchingPattern(filePath, pattern) { } const fileContent = fs.readFileSync(filePath, "utf-8"); - const lines = fileContent.split(/[\r\n]+/); + const lines = fileContent.split(/[\r\n\u2028\u2029]+/); const updatedLines = lines.filter((line) => !shouldRemoveLine(line, pattern)); fs.writeFileSync(filePath, updatedLines.join(os.EOL), "utf-8"); }