From 9ec1c5c30474ddff9f046991e513eb198f02ab9c Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 28 Jan 2017 11:42:34 -0500 Subject: [PATCH] try fixing wobble text --- contrib/lua/memeposting.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/lua/memeposting.lua b/contrib/lua/memeposting.lua index 36813bd..a84ee99 100644 --- a/contrib/lua/memeposting.lua +++ b/contrib/lua/memeposting.lua @@ -11,6 +11,9 @@ end -- generate extra markup function memeposting(body, prefix) - body = string.gsub(body, "|(.*)|", wobble_text) + local nums = 1 + for nums > 0 do + body, nums = string.gsub(body, "|(.*)|", wobble_text, 1) + end return body end