WIP better matching
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
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
|
||||
@@ -27,6 +29,7 @@ export const isSearchMatch = (o: { index?: number }): o is SearchMatch => {
|
||||
}
|
||||
|
||||
export type ResultNote = {
|
||||
searchResult: SearchResult
|
||||
path: string
|
||||
basename: string
|
||||
content: string
|
||||
|
||||
Reference in New Issue
Block a user