Updated on 2026-08-14
This commit is contained in:
parent
1ccd4f3b6c
commit
b3ed607c1a
4 changed files with 7 additions and 27 deletions
|
|
@ -9,4 +9,8 @@ fun String.uriValidate(): Boolean {
|
|||
val regex = DEEPLINK_VALIDATION_REGEX.toRegex()
|
||||
|
||||
return !regex.containsMatchIn(this)
|
||||
}
|
||||
|
||||
fun String.addHexPrefix(): String {
|
||||
return if (this.startsWith("0x")) this else "0x$this"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue