toddr / perl-net-jabber-bot

Net::Jabber::Bot module for Perl
https://metacpan.org/pod/Net::Jabber::Bot
14 stars 8 forks source link

\n (newline) characters #9

Open baka44 opened 6 years ago

baka44 commented 6 years ago

Is there way to rework that regexp: Net/Jabber/Bot.pm:992 $message_chunk =~ s/[^[:print:]]+/./xmsg; And include that update on CPAN, something like: $message_chunk =~ s/[^[:print:]]+/\n/xmsg; #new line usually is more required than dot :) becouse is the large trouble with adding newlines in message.

toddr commented 4 years ago

That is a very messy regex. Probably the whole line needs to be rewritten.