Open klren0312 opened 1 year ago
function doSplit(text, keyword) { const reg = new RegExp(`${keyword}`, 'gi') return text.replace(reg, v =>`\n${v}\n`).split('\n').filter(v => v) }