From 12e9caf5575ff8eb971e22b05d62fda237955354 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 12 Mar 2023 13:54:18 +0800 Subject: [PATCH] LMMgr // Fix tagOverrides(). --- Source/Modules/LMMgr_PhraseEditorDelegate.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Modules/LMMgr_PhraseEditorDelegate.swift b/Source/Modules/LMMgr_PhraseEditorDelegate.swift index 997b0003..61bc596f 100644 --- a/Source/Modules/LMMgr_PhraseEditorDelegate.swift +++ b/Source/Modules/LMMgr_PhraseEditorDelegate.swift @@ -97,7 +97,8 @@ extension LMMgr: PhraseEditorDelegate { guard arr.count >= 2 else { continue } let exists = Self.checkIfUserPhraseExist( userPhrase: arr[0].description, mode: mode, - keyArray: arr[1].map(\.description), factoryDictionaryOnly: true + keyArray: arr[1].split(separator: "-").map(\.description), + factoryDictionaryOnly: true ) outputStack.append(currentLine.description) let replace = !currentLine.contains(" #π™ΎπšŸπšŽπš›πš›πš’πšπšŽ") && exists