Updated on 2026-08-14

This commit is contained in:
Tangem 2025-05-27 19:20:31 +05:00
parent a6bbcf1e10
commit 0de7027fbc
9 changed files with 154 additions and 4 deletions

View file

@ -5,7 +5,7 @@ private const val DEEPLINK_VALIDATION_REGEX = "['\";<>()+\\\\]"
/**
* Check for malicious symbol in uri part
*/
fun String.validate(): Boolean {
fun String.uriValidate(): Boolean {
val regex = DEEPLINK_VALIDATION_REGEX.toRegex()
return !regex.containsMatchIn(this)