something
This commit is contained in:
parent
67b99a8c1c
commit
f64c8f25d2
2
.gitignore
vendored
2
.gitignore
vendored
@ -47,3 +47,5 @@ plugins/flickr_search.lua
|
||||
plugins/google_books.lua
|
||||
plugins/safebrowsing.lua
|
||||
plugins/stats2.lua
|
||||
plugins/help2.lua
|
||||
plugins/miiverse.lua
|
@ -10,7 +10,7 @@ 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-_%.%?%.:/%+=&]+%.png)$","^(https?://[%w-_%.%?%.:/%+=&]+%.jpg)$","^(https?://[%w-_%.%?%.:/%+=&]+%.jpeg)$",},
|
||||
run = run
|
||||
}
|
||||
|
||||
|
@ -15,6 +15,7 @@ function getTitle(page)
|
||||
s = string.gsub(s, "'", "'")
|
||||
s = string.gsub(s, "–", "–")
|
||||
s = string.gsub(s, "»", "»")
|
||||
s = string.gsub(s, "–", "–")
|
||||
s = string.gsub(s, "“", "“")
|
||||
s = string.gsub(s, "”", "”")
|
||||
s = string.gsub(s, "ä", "ä")
|
||||
|
Reference in New Issue
Block a user