Popraw OTP, kafelki i aparat
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package pl.firmatpp.kierowca.domain
|
||||
|
||||
object OtpCodeExtractor {
|
||||
private val codePattern = Regex("""(?<!\d)\d{4,10}(?!\d)""")
|
||||
|
||||
fun extract(message: String): String? =
|
||||
codePattern.find(message)?.value
|
||||
}
|
||||
Reference in New Issue
Block a user