summaryrefslogtreecommitdiff
path: root/localmarkdown2sms
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2009-08-25 16:56:33 +0200
committerJonas Smedegaard <dr@jones.dk>2009-08-25 16:56:33 +0200
commit362f7800bf8fc792fec425a32bc843a8058ce1fd (patch)
tree93c5653ff76f02fd31bf72dc0c6a3fb65083117d /localmarkdown2sms
parent6b210c166cb05ec7d90a804d2bde53848916f9ad (diff)
Strip leading space from keyword
Diffstat (limited to 'localmarkdown2sms')
-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) {