From 7b741fa3576fc6034a2cca8179b5c585abf0e895 Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Tue, 7 Jun 2022 12:38:46 +0200 Subject: [PATCH] #53 - also remove diacritics from the cache --- src/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.ts b/src/search.ts index 30736ea..637a3d7 100644 --- a/src/search.ts +++ b/src/search.ts @@ -251,7 +251,7 @@ export async function addToIndex(file: TAbstractFile): Promise { } // Fetch content from the cache to index it as-is - const content = await app.vault.cachedRead(file) + const content = removeDiacritics(await app.vault.cachedRead(file)) // Make the document and index it const note: IndexedNote = {