#373 - Arabic diacritics

This commit is contained in:
Simon Cambier
2024-06-27 21:00:18 +02:00
parent 85a23d8352
commit 87d2085fda
5 changed files with 46 additions and 12 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ export class TextProcessor {
const originalText = text
// text = text.toLowerCase().replace(new RegExp(SEPARATORS, 'gu'), ' ')
if (this.plugin.settings.ignoreDiacritics) {
text = removeDiacritics(text)
text = removeDiacritics(text, this.plugin.settings.ignoreArabicDiacritics)
}
const startTime = new Date().getTime()
let match: RegExpExecArray | null = null