Tekkon // v1.2.7 update.

This commit is contained in:
ShikiSuen 2022-07-22 17:17:14 +08:00
parent 4cc105b257
commit 4f8ece9b51
1 changed files with 1 additions and 1 deletions

View File

@ -906,7 +906,7 @@ public struct Tekkon {
}
for key in Tekkon.mapArayuruPinyinIntonation.keys.sorted(by: { $0.count > $1.count }) {
guard let value = Tekkon.mapArayuruPinyinIntonation[key] else { continue }
result = result.replacingOccurrences(of: key, with: value)
result = result.replacingOccurrences(of: key, with: (key == "1") ? "" : value)
}
return result
}