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