We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46368a8 commit 47e52baCopy full SHA for 47e52ba
src/main/java/ru/spliterash/vkVideoUnlocker/message/utils/MessageUtils.kt
@@ -13,7 +13,7 @@ class MessageUtils(
13
private val messageContentScanner: MessageContentScanner,
14
private val videoService: VideoService,
15
) {
16
- private val vkUrlPattern = Pattern.compile("(?:https?://)?vk\\.com/(?<attachment>(?:video|wall|story)-?\\d+_\\d+)")
+ private val vkUrlPattern = Pattern.compile("(?:https?://)?vk\\.com/.*?(?<attachment>(?:video|wall|story)-?\\d+_\\d+)")
17
18
suspend fun scanForVideoContent(root: RootMessage): VideoContentHolder? {
19
val scanResult = messageContentScanner.findContent(root)
0 commit comments