function extractCommands()

in antora-ui-hop/src/js/06-copy-to-clipboard.js [57:62]


  function extractCommands (text) {
    var cmds = []
    var m
    while ((m = CMD_RX.exec(text))) cmds.push(m[1].replace(LINE_CONTINUATION_RX, '$1$2'))
    return cmds.join(' && ')
  }