Source

wikdNode / shared / delete.groovy

The branch 'default' does not exist.
Full commit
import java.util.regex.Pattern
import org.apache.commons.lang.StringUtils as SU

def trimPrompt(String pattern, Boolean start, String msg) {
	def mark = ui.showInputDialog(node.delegate, msg, '')
	if (mark != null) {
	   mark = Pattern.quote(start ? pattern + mark : mark + pattern)
	   c.selecteds.every { it.text = SU.trim( it.plainText.replaceFirst(mark, '')) }
	}
}