diff --git a/src/workspace.js b/src/workspace.js index 3bf112461..ad37630eb 100644 --- a/src/workspace.js +++ b/src/workspace.js @@ -1949,7 +1949,7 @@ module.exports = class Workspace extends Model { } if (!outOfProcessFinished.length) { - let flags = 'g' + let flags = 'gm' // set multiline flag so ^ and $ match start/end of line, not file if (regex.ignoreCase) { flags += 'i' } const task = Task.once(