From 4bb93b5932e0a3ca9dd39088100cf3461d2339ea Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Wed, 4 May 2022 16:50:06 +0800 Subject: [PATCH] LMInstantiator // Let phrase replacement behave like upstream. --- Source/Modules/LangModelRelated/LMInstantiator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/LangModelRelated/LMInstantiator.swift b/Source/Modules/LangModelRelated/LMInstantiator.swift index 3427c7ff..08fb85ca 100644 --- a/Source/Modules/LangModelRelated/LMInstantiator.swift +++ b/Source/Modules/LangModelRelated/LMInstantiator.swift @@ -311,7 +311,7 @@ extension vChewing { if isPhraseReplacementEnabled { let replacement = lmReplacements.valuesFor(key: pair.value) - if !replacement.isEmpty, pair.value.count == replacement.count { + if !replacement.isEmpty { IME.prtDebugIntel("\(pair.value) -> \(replacement)") pair.value = replacement }