fix: complete task tokens on trailing whitespace

This commit is contained in:
Valdemar Lorenzen
2026-10-19 12:32:23 +02:00
parent 7c26a88c6c
commit f275695d2f
4 changed files with 75 additions and 4 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ final class NotesController: NSViewController, NSTextViewDelegate {
}
private static let listItem = try! NSRegularExpression(
pattern: "^([ \\t]*)([-+*]|([0-9]+)([.)]))([ \\t]+|$)(?:\\[([ xX])\\]([ \\t]+|$))?"
pattern: "^([ \\t]*)([-+*]|([0-9]+)([.)]))([ \\t]+|$)(?:\\[([ xX]?)\\]([ \\t]+|$))?"
)
private static func indentationWidth(_ indentation: String) -> Int {