Updated on 2026-08-14

This commit is contained in:
Tangem 2025-12-08 18:39:36 +03:00
parent 1ccd4f3b6c
commit b3ed607c1a
4 changed files with 7 additions and 27 deletions

View file

@ -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"
}