From: Vsevolod Stakhov Date: Thu, 28 Aug 2014 11:48:00 +0000 (+0100) Subject: Fix parsing of comment lines without leading `*`. X-Git-Tag: 0.7.0~68 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=71669bb0498977032ab4291e40aed7d0ec96c6f2;p=rspamd.git Fix parsing of comment lines without leading `*`. --- diff --git a/doc/lua_api.pl b/doc/lua_api.pl index b7c69a33c..7a987b922 100755 --- a/doc/lua_api.pl +++ b/doc/lua_api.pl @@ -233,7 +233,7 @@ while (<>) { $content = ""; } else { - my ($line) = ( $_ =~ /^\s*(?:\*\s?)(.+)\s*$/ ); + my ($line) = ( $_ =~ /^(?:\s*\*\s)?(.+)\s*$/ ); if ($line) { $content .= $line . "\n"; }