From af6c0ba6b829fe20b9c435cd6562722be518ff3c Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sun, 29 Jan 2017 09:31:52 -0500 Subject: [PATCH] fix --- contrib/lua/memeposting.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/lua/memeposting.lua b/contrib/lua/memeposting.lua index 9ece13d..c88de55 100644 --- a/contrib/lua/memeposting.lua +++ b/contrib/lua/memeposting.lua @@ -17,9 +17,13 @@ function psy_text(str) return span_text("psy", str) end +function quotey_text(str) + return span_text("nazi", str) +end + -- generate extra markup function memeposting(body, prefix) - body = string.gsub(body, "%(%(%((.-)%)%)%)", function (str) return string.format("
%s
", prefix, str) end) + body = string.gsub(body, "%(%(%((.-)%)%)%)", quotey_text) body = string.gsub(body, "%[%[%[(.-)%]%]%]", wobble_text) body = string.gsub(body, "//(.-)\\\\", explode_text) body = string.gsub(body, "/@(.-)@\\", psy_text)