From 316ac023ff91fafca94cddfb59f4d0bce98612cf Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 9 Sep 2024 12:58:56 +0800 Subject: chore: Improve eslint --- src/editor.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/editor.mjs') diff --git a/src/editor.mjs b/src/editor.mjs index f1c90ed..04b4125 100644 --- a/src/editor.mjs +++ b/src/editor.mjs @@ -215,7 +215,7 @@ const getSuggestionsFromAliases = (option) => Object.entries(aliasesForMapOption // }}} const handleTypingInCodeBlock = (currentLine, selection) => { const text = currentLine.textContent - if (text.match(/^\s\+$/) && text.length % 2 != 0) { + if (text.match(/^\s\+$/) && text.length % 2 !== 0) { // TODO Completion for even number of spaces } else if (text.match(/^-/)){ // TODO Completion for YAML doc separator -- cgit v1.2.3-70-g09d2