Skip to content

Commit 271ba23

Browse files
committed
Update normalise method to use correct replacement
1 parent 189d21a commit 271ba23

File tree

1 file changed

+1
-1
lines changed
  • pluto-plugins/base/lib/src/main/java/com/pluto/utilities/spannable

1 file changed

+1
-1
lines changed

pluto-plugins/base/lib/src/main/java/com/pluto/utilities/spannable/SpanUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class Builder(val context: Context) {
141141

142142
private fun CharSequence.normalise(): String {
143143
return Normalizer.normalize(this, Normalizer.Form.NFD)
144-
.replace("[^\\p{ASCII}]".toRegex(), "")
144+
.replace("\\p{InCombiningDiacriticalMarks}+".toRegex(), "")
145145
}
146146

147147
fun build(): CharSequence {

0 commit comments

Comments
 (0)