# HG changeset patch # User Kim Alvefur # Date 1527199932 -7200 # Node ID be9e213d089b952fbd11b78ffc82a716c6ae7092 # Parent 6cc44e69443a8e8c269afe50539f057e9b933565 mod_pastebin: Fix line count pattern added by 040eaa3844f4 diff -r 6cc44e69443a -r be9e213d089b 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;