diff --git a/src/tools/text-processing.ts b/src/tools/text-processing.ts index 44db0ac..c0e8837 100644 --- a/src/tools/text-processing.ts +++ b/src/tools/text-processing.ts @@ -14,13 +14,6 @@ import type { Query } from 'src/search/query' import { Notice } from 'obsidian' import { escapeRegExp } from 'lodash-es' -export function highlighterGroups(_substring: string, ...args: any[]) { - // args[0] is the single char preceding args[1], which is the word we want to highlight - if (!!args[1].trim()) - return `${args[0]}${args[1]}` - return '<no content>' -} - /** * Wraps the matches in the text with a element and a highlight class * @param text diff --git a/src/tools/utils.ts b/src/tools/utils.ts index a24e488..d2f66dd 100644 --- a/src/tools/utils.ts +++ b/src/tools/utils.ts @@ -9,10 +9,6 @@ import { canIndexUnsupportedFiles, settings } from '../settings' import { type BinaryLike, createHash } from 'crypto' import { md5 } from 'pure-md5' -// export function highlighter(str: string): string { -// return `${str}` -// } - export function pathWithoutFilename(path: string): string { const split = path.split('/') split.pop()