Software /
code /
prosody-modules
Changeset
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 | 3043:6cc44e69443a |
children | 3045:26977c4760f5 |
files | mod_pastebin/mod_pastebin.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;