From: Tim Düsterhus Date: Fri, 24 May 2013 10:58:35 +0000 (+0200) Subject: Fix YouTube Regex X-Git-Tag: 2.0.0_Beta_1~73 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=861451f4699eccbc6abb830db75b8be4bc610282;p=GitHub%2FWoltLab%2FWCF.git Fix YouTube Regex --- diff --git a/wcfsetup/setup/db/install.sql b/wcfsetup/setup/db/install.sql index 8b8e208dca..fd7854c7b8 100644 --- a/wcfsetup/setup/db/install.sql +++ b/wcfsetup/setup/db/install.sql @@ -1646,7 +1646,7 @@ INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('messageSid -- media providers -- Videos -- Youtube - INSERT INTO wcf1_bbcode_media_provider (title, regex, html) VALUES ('YouTube', 'https?://(?:.+?\\.)?youtu(?:\\.be/|be\\.com/watch\\?(?:.*?&)?v=)(?[a-zA-Z0-9_-]+)(?#t=(?:\\d+|(?:\\d+h(?:\\d+m)?(?:\\d+s)?)|(?:\\d+m(?:\\d+s)?)|(?:\\d+s))$)?', ''); + INSERT INTO wcf1_bbcode_media_provider (title, regex, html) VALUES ('YouTube', 'https?://(?:.+?\\.)?youtu(?:\\.be/|be\\.com/watch\\?(?:.*?&)?v=)(?[a-zA-Z0-9_-]+)(?(?:#t=(?:\\d+|(?:\\d+h(?:\\d+m)?(?:\\d+s)?)|(?:\\d+m(?:\\d+s)?)|(?:\\d+s))$)?)', ''); -- Vimeo INSERT INTO wcf1_bbcode_media_provider (title, regex, html) VALUES ('Vimeo', 'http://vimeo\\.com/(?\\d+)', ''); -- MyVideo @@ -1684,4 +1684,4 @@ INSERT INTO wcf1_user_rank (groupID, requiredPoints, rankTitle, cssClassName) VA (3, 900, 'wcf.user.rank.user2', ''), (3, 3000, 'wcf.user.rank.user3', ''), (3, 9000, 'wcf.user.rank.user4', ''), - (3, 15000, 'wcf.user.rank.user5', ''); \ No newline at end of file + (3, 15000, 'wcf.user.rank.user5', '');