mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
Checklist Parser: Make it a bit more robust
Allow the space after `[ ]` to be optional. Just like in Github.
This commit is contained in:
@ -43,7 +43,7 @@ class ChecklistItem {
|
||||
|
||||
class Checklist {
|
||||
static final _pattern = RegExp(
|
||||
r'^(.*)- \[([ xX])\] +(.*)$',
|
||||
r'^(.*)- \[([ xX])\] ?(.*)$',
|
||||
multiLine: false,
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user