diff --git a/ui/qml/OutlineView.qml b/ui/qml/OutlineView.qml index e25b08f..383ca1e 100644 --- a/ui/qml/OutlineView.qml +++ b/ui/qml/OutlineView.qml @@ -67,11 +67,11 @@ ListView { // checkbox, and the item text. Returns null for non-list lines. function parseListItem(line) { // Unordered: - / + bullet (indented * also allowed) - let m = line.match(/^(\s*)([-+])\s+(\[([ xX-])\]\s+)?(.*)$/); + let m = line.match(/^(\s*)([-+])\s+(\[([ xX-])\]\s*)?(.*)$/); let ordered = false; if (!m) { // Ordered: 1. or 1) - m = line.match(/^(\s*)(\d+)[.)]\s+(\[([ xX-])\]\s+)?(.*)$/); + m = line.match(/^(\s*)(\d+)[.)]\s+(\[([ xX-])\]\s*)?(.*)$/); if (!m) return null; ordered = true; }