aboutsummaryrefslogtreecommitdiffstats
path: root/multi-exec.js
diff options
context:
space:
mode:
Diffstat (limited to 'multi-exec.js')
-rw-r--r--multi-exec.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/multi-exec.js b/multi-exec.js
index cb93311..7b7100f 100644
--- a/multi-exec.js
+++ b/multi-exec.js
@@ -80,8 +80,9 @@ let PLUGIN_INFO = xml`
'Multiple ex',
function (args) {
let [sep, body] = ['|', args.string];
- let (m = body.match(/^(\S)\s+(.*)$/))
- m && ([sep, body] = [m[1], m[2]]);
+ let m = body.match(/^(\S)\s+(.*)$/);
+ if (m)
+ [sep, body] = [m[1], m[2]];
body.split(sep)
.map(function (it) it.replace(/^\s+/, ''))
.forEach(liberator.execute, liberator);