Updated on 2026-08-14
This commit is contained in:
parent
a6bbcf1e10
commit
0de7027fbc
9 changed files with 154 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue