strip https:// and trailing slash from params
[via-proxy] / add-provider.pl
index e04e2d3..28bbb95 100755 (executable)
@@ -3,7 +3,7 @@ use warnings;
 use strict;
 use autodie;
 
-my @domains = @ARGV;
+my @domains = map { s{^https://}{}; s{/+$}{}; $_ } @ARGV;
 
 open(my $fh, '>', "providers/$domains[0].conf");