Problem: lines for - are not supported in copy paste
All checks were successful
continuous-integration/drone/push Build is passing

Solution: adjust regex so as not to split there
This commit is contained in:
Peter Stuifzand 2022-01-12 22:51:54 +01:00
parent e4539b520c
commit d3cde5fd94

View File

@ -527,7 +527,7 @@ function editor(root, inputData, options) {
if (inputString.match(/^- /)) {
let item = $(this).parents('.list-item')
let id = item.attr('data-id')
let lines = inputString.split(/( *)- /)
let lines = inputString.split(/^|\n( *)- /)
lines.shift()
const firstItem = store.value(id)
const firstIndent = firstItem.indented