LMCoreEX // Omit score reading if it contains sharp sign.

This commit is contained in:
ShikiSuen 2022-07-17 23:21:10 +08:00
parent c89a692173
commit de1c190137
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ extension vChewing {
let theValue: String = shouldReverse ? String(neta[0]) : String(neta[1])
let kvPair = Megrez.KeyValuePaired(key: key, value: theValue)
var theScore = defaultScore
if neta.count >= 3, !shouldForceDefaultScore {
if neta.count >= 3, !shouldForceDefaultScore, !neta[2].contains("#") {
theScore = .init(String(neta[2])) ?? defaultScore
}
if theScore > 0 {