Skip to content

Commit 47e52ba

Browse files
committed
Чутка поменял regex поиска вкшной ссылки
1 parent 46368a8 commit 47e52ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/ru/spliterash/vkVideoUnlocker/message/utils/MessageUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class MessageUtils(
1313
private val messageContentScanner: MessageContentScanner,
1414
private val videoService: VideoService,
1515
) {
16-
private val vkUrlPattern = Pattern.compile("(?:https?://)?vk\\.com/(?<attachment>(?:video|wall|story)-?\\d+_\\d+)")
16+
private val vkUrlPattern = Pattern.compile("(?:https?://)?vk\\.com/.*?(?<attachment>(?:video|wall|story)-?\\d+_\\d+)")
1717

1818
suspend fun scanForVideoContent(root: RootMessage): VideoContentHolder? {
1919
val scanResult = messageContentScanner.findContent(root)

0 commit comments

Comments
 (0)