Chore - code cleaning
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import { EventBus } from './event-bus'
|
||||
|
||||
// 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 regexStripQuotes = /^"|"$|^'|'$/g
|
||||
@@ -18,12 +16,6 @@ export const searchIndexFilePath = `${app.vault.configDir}/plugins/omnisearch/se
|
||||
export const notesCacheFilePath = `${app.vault.configDir}/plugins/omnisearch/notesCache.json`
|
||||
export const historyFilePath = `${app.vault.configDir}/plugins/omnisearch/historyCache.json`
|
||||
|
||||
export type SearchNote = {
|
||||
path: string
|
||||
basename: string
|
||||
content: string
|
||||
}
|
||||
|
||||
export type IndexedNote = {
|
||||
path: string
|
||||
basename: string
|
||||
|
||||
Reference in New Issue
Block a user