#1156 - Fix search for non-ascii characters

This commit is contained in:
KruziikG
2018-07-28 12:22:07 +08:00
committed by Moez Bhatti
parent 80e8a7e28d
commit 355fa5e6c6
@@ -24,4 +24,3 @@ import java.text.Normalizer
* Strip the accents from a string
*/
fun CharSequence.removeAccents() = Normalizer.normalize(this, Normalizer.Form.NFD)
.replace(Regex("[^\\p{ASCII}]"), "")