Fixes twitch clips which contain a dash char
authorSir-Will <brieftaubenman@gmail.com>
Mon, 15 Feb 2021 18:48:20 +0000 (19:48 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 16 Feb 2021 08:18:35 +0000 (09:18 +0100)
Twitch clips can contain a dash (´-`).
Example: https://clips.twitch.tv/NeighborlyManlyBaconMikeHogu-_9zfXbRK47vik1WO

Resolves #3996

com.woltlab.wcf/mediaProvider.xml

index d3f7176ba793a97e96c79e187a95c2672f29a72e..b7a648f2c911d4190162f143274115d3c0cea6f2 100644 (file)
@@ -61,8 +61,8 @@ https?://open.spotify.com/(?<TYPE>[a-zA-Z]+)/(?<ID>[0-9a-zA-Z]+)]]></regex>
                </provider>
                <provider name="twitch">
                        <title>Twitch</title>
-                       <regex><![CDATA[https?://clips.twitch.tv/(?<CLIP>[a-zA-Z0-9_]+)
-https?://www.twitch.tv/(?<AUTHOR>[a-zA-Z0-9_]+)/clip/(?<CLIP>[a-zA-Z0-9_]+)
+                       <regex><![CDATA[https?://clips.twitch.tv/(?<CLIP>[a-zA-Z0-9_-]+)
+https?://www.twitch.tv/(?<AUTHOR>[a-zA-Z0-9_]+)/clip/(?<CLIP>[a-zA-Z0-9_-]+)
 https?://www.twitch.tv/(?!videos)(?!.*/v/)(?<CHANNEL>[a-zA-Z0-9_]+)
 https?://www.twitch.tv/videos/(?<VIDEO>[0-9]+)
 https?://www.twitch.tv/[a-zA-Z0-9]+/v/(?<VIDEO>[0-9]+)]]></regex>