From f6da1a798f85fdd4bfc3665205b16cb7b8911f22 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Thu, 31 Aug 2023 07:20:16 -0600 Subject: [PATCH] make markdown() match a bit less grabby fixes #4 --- openbsd.app.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbsd.app.pl b/openbsd.app.pl index ef508cc..a458c0a 100755 --- a/openbsd.app.pl +++ b/openbsd.app.pl @@ -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/\*\*(.+)\*\*/$1<\/strong>/g; +sub markdown ($str) { + $str =~ s/\*\*(\w+)\*\*/$1<\/strong>/g; $str =~ s/\n/
/g; return $str; }