diff --git a/src/tools/notes.ts b/src/tools/notes.ts index 2d61574..4edca68 100644 --- a/src/tools/notes.ts +++ b/src/tools/notes.ts @@ -38,7 +38,7 @@ export async function openNote( return } const pos = view.editor.offsetToPos(offset) - pos.ch = 0 + // pos.ch = 0 view.editor.setCursor(pos) view.editor.scrollIntoView({ diff --git a/src/tools/text-processing.ts b/src/tools/text-processing.ts index 56c20c1..5a5e8e9 100644 --- a/src/tools/text-processing.ts +++ b/src/tools/text-processing.ts @@ -115,7 +115,7 @@ export function stringsToRegex(strings: string[]): RegExp { ')' + `(${strings.map(s => escapeRegExp(s)).join('|')})` - return new RegExp(`${joined}`, 'gu') + return new RegExp(`${joined}`, 'gui') } export function getMatches(