mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Only use multiline if the flag is passed in
This commit is contained in:
@@ -1949,7 +1949,8 @@ module.exports = class Workspace extends Model {
|
||||
}
|
||||
|
||||
if (!outOfProcessFinished.length) {
|
||||
let flags = 'gm' // set multiline flag so ^ and $ match start/end of line, not file
|
||||
let flags = 'g'
|
||||
if (regex.multiline) { flags += 'm' }
|
||||
if (regex.ignoreCase) { flags += 'i' }
|
||||
|
||||
const task = Task.once(
|
||||
|
||||
Reference in New Issue
Block a user