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

Commit b1106ff

Browse files
committed
Match all cases of X on the front end
1 parent e46e645 commit b1106ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/assets/javascripts/task_lists.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ complete = "[x]"
105105
escapePattern = (str) ->
106106
str.
107107
replace(/([\[\]])/g, "\\$1"). # escape square brackets
108-
replace(/\s/, "\\s") # match all white space
108+
replace(/\s/, "\\s"). # match all white space
109+
replace("x", "[xX]") # match all cases
109110

110111
incompletePattern = ///
111112
#{escapePattern(incomplete)}

0 commit comments

Comments
 (0)