]> source.dussan.org Git - rspamd.git/commitdiff
Fix parsing of comment lines without leading `*`.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 28 Aug 2014 11:48:00 +0000 (12:48 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 28 Aug 2014 11:48:00 +0000 (12:48 +0100)
doc/lua_api.pl

index b7c69a33cd52df81bc9923e14d12b541e25b24b7..7a987b922c10600b1e3a6ac0aca6fa105b337686 100755 (executable)
@@ -233,7 +233,7 @@ while (<>) {
                        $content = "";
                }
                else {
-                       my ($line) = ( $_ =~ /^\s*(?:\*\s?)(.+)\s*$/ );
+                       my ($line) = ( $_ =~ /^(?:\s*\*\s)?(.+)\s*$/ );
                        if ($line) {
                                $content .= $line . "\n";
                        }