浏览代码

:rotating_light:

Vanessa 1 年之前
父节点
当前提交
f2f5f7af0c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/src/protyle/hint/index.ts

+ 2 - 2
app/src/protyle/hint/index.ts

@@ -901,9 +901,9 @@ ${genHintItemHTML(item)}
             let currentLastIndex = currentLineValue.lastIndexOf(item.key);
             // https://ld246.com/article/1701670704754
             if (Constants.BLOCK_HINT_KEYS.includes(item.key) && currentLastIndex > -1) {
-                const thirdLastIndex = currentLineValue.lastIndexOf(item.key + item.key.substring(0, 1))
+                const thirdLastIndex = currentLineValue.lastIndexOf(item.key + item.key.substring(0, 1));
                 if (thirdLastIndex > -1) {
-                    currentLastIndex = Math.min(currentLastIndex, currentLineValue.lastIndexOf(item.key + item.key.substring(0, 1)))
+                    currentLastIndex = Math.min(currentLastIndex, currentLineValue.lastIndexOf(item.key + item.key.substring(0, 1)));
                 }
             }
             if (this.lastIndex < currentLastIndex) {