diff --git a/browser/components/MarkdownSplitEditor.js b/browser/components/MarkdownSplitEditor.js index 22ccca56..4a08bf12 100644 --- a/browser/components/MarkdownSplitEditor.js +++ b/browser/components/MarkdownSplitEditor.js @@ -77,8 +77,8 @@ class MarkdownSplitEditor extends React.Component { handleCheckboxClick (e) { e.preventDefault() e.stopPropagation() - const idMatch = /checkbox-([0-9]+)/ - const checkedMatch = /^\s*[\+\-\*] \[x\]/i + const idMatch = /checkbox-([0-9]+)/ + const checkedMatch = /^\s*[\+\-\*] \[x\]/i const uncheckedMatch = /^\s*[\+\-\*] \[ \]/ if (idMatch.test(e.target.getAttribute('id'))) { const lineIndex = parseInt(e.target.getAttribute('id').match(idMatch)[1], 10) - 1