Tekkon // v1.2.7 update.
This commit is contained in:
parent
4cc105b257
commit
4f8ece9b51
|
@ -906,7 +906,7 @@ public struct Tekkon {
|
||||||
}
|
}
|
||||||
for key in Tekkon.mapArayuruPinyinIntonation.keys.sorted(by: { $0.count > $1.count }) {
|
for key in Tekkon.mapArayuruPinyinIntonation.keys.sorted(by: { $0.count > $1.count }) {
|
||||||
guard let value = Tekkon.mapArayuruPinyinIntonation[key] else { continue }
|
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
|
return result
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue