summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalmarkdown2sms3
1 files changed, 3 insertions, 0 deletions
diff --git a/localmarkdown2sms b/localmarkdown2sms
index 879ce93..d4d5720 100755
--- a/localmarkdown2sms
+++ b/localmarkdown2sms
@@ -47,6 +47,9 @@ my ($path) = shift @ARGV;
my ($phone) = shift @ARGV;
my ($key) = lc (shift @ARGV);
+# strip leading (and non-leading if ever possible?) spaces
+$key =~ s/\s//g;
+
if ($debug) {
Log::Log4perl->easy_init($DEBUG);
} elsif ($INFO) {