mod_pastebin: Fix line count pattern added by 040eaa3844f4
authorKim Alvefur <zash@zash.se>
Fri, 25 May 2018 00:12:12 +0200
changeset 3048 be9e213d089b
parent 3047 6cc44e69443a
child 3049 26977c4760f5
mod_pastebin: Fix line count pattern added by 040eaa3844f4
mod_pastebin/mod_pastebin.lua
--- a/mod_pastebin/mod_pastebin.lua	Thu May 24 20:27:48 2018 +0200
+++ b/mod_pastebin/mod_pastebin.lua	Fri May 25 00:12:12 2018 +0200
@@ -95,7 +95,7 @@
 	end
 end
 
-local line_count_pattern = string.rep("[^\n]\n", line_threshold):sub(1, -2);
+local line_count_pattern = string.rep("[^\n]*\n", line_threshold):sub(1, -2);
 
 function check_message(data)
 	local stanza = data.stanza;