From 790c5d96cf3c521e19de1ac53cdf9e06ce566831 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Sun, 2 Aug 2015 22:07:07 +0200 Subject: [PATCH] media.lua pattern fix --- plugins/media.lua | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/plugins/media.lua b/plugins/media.lua index 6910dd9..1a73649 100644 --- a/plugins/media.lua +++ b/plugins/media.lua @@ -45,23 +45,23 @@ return { description = "Wenn ein User eine Medien-Datei sendet (gif, mp4, pdf, etc.), wird es gedownloadet und gesendet.", usage = {""}, patterns = { - "(https?://[%w-_%.%?%.:/%+=&]+%.(gif))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(mp4))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(pdf))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(ogg))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(zip))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(tar.gz))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(7z))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(mp3))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(rar))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(wmv))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(doc))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(avi))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(wav))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(apk))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(webm))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(ogv))$", - "(https?://[%w-_%.%?%.:/%+=&]+%.(webp))$" + "^(https?://[%w-_%.%?%.:/%+=&]+%.(gif))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(mp4))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(pdf))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(ogg))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(zip))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(tar.gz))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(7z))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(mp3))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(rar))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(wmv))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(doc))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(avi))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(wav))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(apk))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(webm))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(ogv))$", + "^(https?://[%w-_%.%?%.:/%+=&]+%.(webp))$" }, run = run }