make markdown() match a bit less grabby

fixes #4
This commit is contained in:
Aaron Bieber 2023-08-31 07:20:16 -06:00
parent b3aa917685
commit f6da1a798f
No known key found for this signature in database

View File

@ -89,8 +89,8 @@ SELECT substr('..........',1,level*3) || name FROM under_port;
my $title = "OpenBSD.app";
my $descr = "OpenBSD package search";
sub markdown($str) {
$str =~ s/\*\*(.+)\*\*/<strong>$1<\/strong>/g;
sub markdown ($str) {
$str =~ s/\*\*(\w+)\*\*/<strong>$1<\/strong>/g;
$str =~ s/\n/<br \/>/g;
return $str;
}