Problem: first line of pasted text is not saved
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Solution: change regex of input string split
This commit is contained in:
parent
d3cde5fd94
commit
f3fa3a0a91
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user