diff mod_pastebin/mod_pastebin.lua @ 3044:be9e213d089b

mod_pastebin: Fix line count pattern added by 040eaa3844f4
author Kim Alvefur <zash@zash.se>
date Fri, 25 May 2018 00:12:12 +0200
parents 60ca0d03f3e3
children 26977c4760f5
line wrap: on
line diff
--- 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;