something
This commit is contained in:
parent
67b99a8c1c
commit
f64c8f25d2
4
.gitignore
vendored
4
.gitignore
vendored
@ -46,4 +46,6 @@ plugins/flickr.lua
|
||||
plugins/flickr_search.lua
|
||||
plugins/google_books.lua
|
||||
plugins/safebrowsing.lua
|
||||
plugins/stats2.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