diff options
-rwxr-xr-x | localmarkdown2sms | 3 |
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) { |