#298 - enabled case-insensitivity

This commit is contained in:
Simon Cambier
2023-11-01 11:18:43 +01:00
parent 4735d1dac3
commit 21df489a0b
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ export async function openNote(
return return
} }
const pos = view.editor.offsetToPos(offset) const pos = view.editor.offsetToPos(offset)
pos.ch = 0 // pos.ch = 0
view.editor.setCursor(pos) view.editor.setCursor(pos)
view.editor.scrollIntoView({ view.editor.scrollIntoView({

View File

@@ -115,7 +115,7 @@ export function stringsToRegex(strings: string[]): RegExp {
')' + ')' +
`(${strings.map(s => escapeRegExp(s)).join('|')})` `(${strings.map(s => escapeRegExp(s)).join('|')})`
return new RegExp(`${joined}`, 'gu') return new RegExp(`${joined}`, 'gui')
} }
export function getMatches( export function getMatches(