summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-01-24 11:51:29 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-01-24 11:51:29 -0700
commit558d2566377ad7f6946129eab1f679e244b8999d (patch)
tree2a3301a43726ded303b84384c3668e4e1bac698a
parent9de11b455fbbda71bf2476f46babb1d4770b124c (diff)
downloadmailscripts-558d2566377ad7f6946129eab1f679e244b8999d.tar.gz
gmi2email: improve image link regexp
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rwxr-xr-xgmi2email2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmi2email b/gmi2email
index dd9edba..e58532c 100755
--- a/gmi2email
+++ b/gmi2email
@@ -263,7 +263,7 @@ sub gemtext_to_mail {
&$pad;
push @buffer, split "\n", wrap "• ", " ", $';
} elsif ($opts{inline_images}
- and my ($uri) = m{^=>\s(gemini://\S+\.(?:jpg|jpeg|png|gif))\s}) {
+ and my ($uri) = m{^=>\s*(gemini://\S+\.(?:jpg|jpeg|png|gif))}) {
&$flush;
my ($type, $data) = gemini_fetch($uri);
$msg->attach(