Verbesserte Pattern für images.lua

This commit is contained in:
Akamaru 2016-02-08 12:53:04 +01:00
parent f73377f032
commit 2f421ab901
1 changed files with 2 additions and 3 deletions

View File

@ -10,9 +10,8 @@ end
return {
description = "Wenn ein Link zu einem Bild gesendet wird, läd und sendet der Bot das Bild.",
usage = {"Link zum Bild"},
patterns = {"^(https?://[%w-_%.%?%.:/%+=~&%[%]]+%.png)",
"^(https?://[%w-_%.%?%.:/%+=~&%[%]]+%.jpg)",
"^(https?://[%w-_%.%?%.:/%+=~&%[%]]+%.jpeg)",},
patterns = {"^(https?://[%w-_%.%?%.:/%+=~&%[%]]+%.[Pp][Nn][Gg])",
"^(https?://[%w-_%.%?%.:/%+=~&%[%]]+%.[Jj][Pp][Ee]?[Gg])"},
run = run
}