diff --git a/list-editor/index.js b/list-editor/index.js index 9fb6a52..1cc721f 100644 --- a/list-editor/index.js +++ b/list-editor/index.js @@ -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(/^|\n( *)- /) + let lines = inputString.split(/^( *)- /ms) lines.shift() const firstItem = store.value(id) const firstIndent = firstItem.indented