From 2fa2feacafa95a82e363e8b036f2ad95f08d5227 Mon Sep 17 00:00:00 2001 From: Wliu <50Wliu@users.noreply.github.com> Date: Wed, 9 Aug 2017 22:52:39 -0400 Subject: [PATCH] Multiline is important, don't forget to set it --- src/workspace.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(