Skip to content

Commit 0eeea74

Browse files
committed
fix(features): ⌥ + mouse click on ref wihen ref contains «-» sign
1 parent fe2e7e1 commit 0eeea74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import markdownit from 'markdown-it'
55

66
import {
77
PropertiesUtils, WalkBlock, checkPropertyExistenceInTree, ensureChildrenIncluded,
8-
escapeForRegExp, filterOutChildBlocks, getBlocksWithReferences,
8+
filterOutChildBlocks, getBlocksWithReferences,
99
getChosenBlocks, getEditingCursorSelection, insertBatchBlockBefore, isWindows, lettersToNumber,
1010
numberToLetters, numberToRoman, p, reduceBlockTree,
1111
reduceTextWithLength, scrollToBlock, setEditingCursorSelection, sleep, transformBlocksTreeByReplacing,

src/utils/other.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function reduceTextWithLength(text: string, length: number, suffix = '...
7676

7777
export function escapeForRegExp(str: string) {
7878
const specials = [
79-
'-', '^', '$',
79+
'^', '$',
8080
'/', '.', '*', '+', '?', '|',
8181
'(', ')', '[', ']', '{', '}', '\\',
8282
]

0 commit comments

Comments
 (0)