diff --git a/browser/components/CodeEditor.js b/browser/components/CodeEditor.js index 77aff3da..3e4a234f 100644 --- a/browser/components/CodeEditor.js +++ b/browser/components/CodeEditor.js @@ -67,7 +67,7 @@ export default class CodeEditor extends React.Component { if (cm.somethingSelected()) cm.indentSelection('add') else { const tabs = cm.getOption('indentWithTabs') - if (line.trimLeft() === '- ' || line.trimLeft() === '* ' || line.trimLeft() === '+ ') { + if (line.trimLeft().match(/^(-|\*|\+) (\[( |x)\] )?$/)) { cm.execCommand('goLineStart') if (tabs) { cm.execCommand('insertTab')