Source

wikdNode / scripts / splitRegex.groovy

The branch 'default' does not exist.
Full commit
// @CacheScriptContent(true)
// @ExecutionModes({ON_SINGLE_NODE})

import org.hardknots.wikd.wikdnode.WikdNode

def mark = ui.showInputDialog(
	node.delegate, 'Enter regular expression to split node text on...', ''
)

if (mark) {
	new WikdNode().splitPlainText((mark ? mark : ''))
}