diff options
author | Jonas Smedegaard <dr@jones.dk> | 2009-08-25 16:56:33 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2009-08-25 16:56:33 +0200 |
commit | 362f7800bf8fc792fec425a32bc843a8058ce1fd (patch) | |
tree | 93c5653ff76f02fd31bf72dc0c6a3fb65083117d /localmarkdown2sms | |
parent | 6b210c166cb05ec7d90a804d2bde53848916f9ad (diff) |
Strip leading space from keyword
Diffstat (limited to 'localmarkdown2sms')
-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) { |