From 21df489a0b43f634d3cdf6e7b4e9b258e0c5ee61 Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Wed, 1 Nov 2023 11:18:43 +0100 Subject: [PATCH] #298 - enabled case-insensitivity --- src/tools/notes.ts | 2 +- src/tools/text-processing.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(