Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit 681fec7

Browse files
committed
break the regex up for readability
1 parent 6938647 commit 681fec7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/assets/javascripts/task_list.coffee

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ completePattern = ///
115115
# Useful when you need iterate over all items.
116116
itemPattern = ///
117117
^
118-
(?:\s*(?:>\s+)*[-+*]|(?:\d+\.))? # optional list prefix
118+
(?: # optional list prefix, consisting of
119+
\s* # optional leading whitespace
120+
(?:>\s+)* # zero or more blockquotes
121+
[-+*]|(?:\d+\.) # item indicato
122+
)?
119123
\s* # optional whitespace prefix
120124
( # checkbox
121125
#{escapePattern(complete)}|

0 commit comments

Comments
 (0)