mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 00:15:27 +00:00
7 lines
181 B
Kotlin
7 lines
181 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.utils
|
||
|
|
||
|
private val extensionRegex = Regex("[^.]*$")
|
||
|
|
||
|
val String.fileExtension
|
||
|
get() = extensionRegex.find(this) ?.value ?: ""
|