mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 03:28:52 +01:00
@@ -23,4 +23,4 @@ import java.text.Normalizer
|
||||
/**
|
||||
* Strip the accents from a string
|
||||
*/
|
||||
fun CharSequence.removeAccents() = Normalizer.normalize(this, Normalizer.Form.NFD)
|
||||
fun CharSequence.removeAccents(): String = Normalizer.normalize(this, Normalizer.Form.NFKD).replace(Regex("\\p{M}"), "")
|
||||
|
||||
Reference in New Issue
Block a user