aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/editor.mjs
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-09-09 12:58:56 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-09-09 13:00:07 +0800
commit316ac023ff91fafca94cddfb59f4d0bce98612cf (patch)
tree2e2ab6b1f1de3df08360a1f9d939e7d116089532 /src/editor.mjs
parent3cc1e78e2dcda4e703c20e5eb5e503f464373474 (diff)
chore: Improve eslint
Diffstat (limited to 'src/editor.mjs')
-rw-r--r--src/editor.mjs2
1 files changed, 1 insertions, 1 deletions
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
215// }}} 215// }}}
216const handleTypingInCodeBlock = (currentLine, selection) => { 216const handleTypingInCodeBlock = (currentLine, selection) => {
217 const text = currentLine.textContent 217 const text = currentLine.textContent
218 if (text.match(/^\s\+$/) && text.length % 2 != 0) { 218 if (text.match(/^\s\+$/) && text.length % 2 !== 0) {
219 // TODO Completion for even number of spaces 219 // TODO Completion for even number of spaces
220 } else if (text.match(/^-/)){ 220 } else if (text.match(/^-/)){
221 // TODO Completion for YAML doc separator 221 // TODO Completion for YAML doc separator