Grouping in-file results when matches are close enough in the text
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import type { SearchResult } from 'minisearch'
|
||||
|
||||
// Matches a wikiling that begins a string
|
||||
export const regexWikilink = /^!?\[\[(?<name>.+?)(\|(?<alias>.+?))?\]\]/
|
||||
export const regexLineSplit = /\r?\n|\r|((\.|\?|!)( |\r?\n|\r))/g
|
||||
export const regexYaml = /^---\s*\n(.*?)\n?^---\s?/ms
|
||||
|
||||
export const surroundLen = 180
|
||||
|
||||
export type SearchNote = {
|
||||
path: string
|
||||
basename: string
|
||||
|
||||
Reference in New Issue
Block a user