From 278924da0d3b9218e88b93bb4255e21df5d99911 Mon Sep 17 00:00:00 2001 From: worm Date: Mon, 13 Nov 2023 17:51:54 -0800 Subject: [PATCH] change regex spacing for mr. fancy britches from the uptown --- lib/Helpers.rakumod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Helpers.rakumod b/lib/Helpers.rakumod index b096e72..954a427 100644 --- a/lib/Helpers.rakumod +++ b/lib/Helpers.rakumod @@ -1,7 +1,7 @@ -my $starts-with-protocol = rx:i/ ^https?\:\/\//; +my $starts-with-protocol = rx:i/ ^https? '://'/; sub fix-protocol ($url) is export { - return "https://" ~ $url unless $url ~~ $starts-with-protocol; + return "http://" ~ $url unless $url ~~ $starts-with-protocol; } # I use a dedicated method to remove all debugging messages prior to commit