Skip to content

Commit

Permalink
fix missing replacement for line continaution in copy to clipboard sc…
Browse files Browse the repository at this point in the history
…ript
  • Loading branch information
mojavelinux committed Dec 21, 2020
1 parent fb55996 commit b915a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/06-copy-to-clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
var cleanupRx = /( ) *\\\n *|\\\n( ?) */g
var cmds = []
var m
while ((m = cmdRx.exec(text))) cmds.push(m[1].replace(cleanupRx, '$1'))
while ((m = cmdRx.exec(text))) cmds.push(m[1].replace(cleanupRx, '$1$2'))
return cmds.join(' && ')
}

Expand Down

0 comments on commit b915a98

Please sign in to comment.