#298 - enabled case-insensitivity
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user