Skip to content

Instantly share code, notes, and snippets.

@rahulsainani
Created September 12, 2021 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulsainani/d84055cb2e9071a31944b78ddcc169e1 to your computer and use it in GitHub Desktop.
Save rahulsainani/d84055cb2e9071a31944b78ddcc169e1 to your computer and use it in GitHub Desktop.
internal fun getVerificationCodeFromSms(sms: String, smsCodeLength: Int): String =
sms.filter { it.isDigit() }
.substring(0 until smsCodeLength)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment