Skip to content

Commit

Permalink
Update WrenDoc.pl
Browse files Browse the repository at this point in the history
potential fix for method parse error
  • Loading branch information
dollerama authored Sep 11, 2024
1 parent f5d4fc4 commit 727dc8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/WrenDoc.pl
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ sub create_doc {
if ($verbose) {
print " WrenDoc Found: method\n";
}
my $name = ( $_ =~ /(.*)(?=\()/s )[0];
my $name = ( $_ =~ /(.*?)(?=\()/s )[0];
$name =~ s/^\s+|\s+$//g;
my @param = split( ", ",
( $_ =~ /(?<=(\())(.*)(?=(\)))/s )[1] );
Expand Down

0 comments on commit 727dc8b

Please sign in to comment.