From 480c05650bee74fbe4d9e1a2d81ec783c082c355 Mon Sep 17 00:00:00 2001 From: Arcturus Date: Fri, 9 Nov 2018 13:58:54 +0000 Subject: [PATCH] fix linting issues --- browser/components/MarkdownEditor.js | 2 +- tests/lib/get-todo-status-test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/components/MarkdownEditor.js b/browser/components/MarkdownEditor.js index 519e92f2..f3bb92bb 100644 --- a/browser/components/MarkdownEditor.js +++ b/browser/components/MarkdownEditor.js @@ -147,7 +147,7 @@ class MarkdownEditor extends React.Component { e.preventDefault() e.stopPropagation() const idMatch = /checkbox-([0-9]+)/ - const checkedMatch = /^\s*[\+\-\*] \[x\]/i + 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 diff --git a/tests/lib/get-todo-status-test.js b/tests/lib/get-todo-status-test.js index e00d7918..4e117aed 100644 --- a/tests/lib/get-todo-status-test.js +++ b/tests/lib/get-todo-status-test.js @@ -28,7 +28,7 @@ test('getTodoStatus should return a correct hash object', t => { ['- [x] `- [x] a`\n', { total: 1, completed: 1 }], ['- [X] `- [X] a`\n', { total: 1, completed: 1 }], [' \t - [X] `- [X] a`\n', { total: 1, completed: 1 }], - [' \t - [X] `- [X] a`\n \t - [ ] `- [X] a`\n', { total: 2, completed: 1 }], + [' \t - [X] `- [X] a`\n \t - [ ] `- [X] a`\n', { total: 2, completed: 1 }] ] testCases.forEach(testCase => {