mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-02 04:47:01 +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 {
|
class Checklist {
|
||||||
static final _pattern = RegExp(
|
static final _pattern = RegExp(
|
||||||
r'^(.*)- \[([ xX])\] +(.*)$',
|
r'^(.*)- \[([ xX])\] ?(.*)$',
|
||||||
multiLine: false,
|
multiLine: false,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user