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
}
