diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-09-23 13:05:05 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-09-23 13:05:05 +0200 |
commit | 12fe2782a1c7aa060dd03a1b786d944136ae5023 (patch) | |
tree | fc7d38cc1a12d8723538c6071c5fb8ce46cc7318 /localmarkdown2sms | |
parent | a2cb491dbb4a923276659759014522fd548fb24e (diff) |
Transliterate keyword (not strip from hardcoded list).
Diffstat (limited to 'localmarkdown2sms')
-rwxr-xr-x | localmarkdown2sms | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/localmarkdown2sms b/localmarkdown2sms index 9b227e5..bee8c74 100755 --- a/localmarkdown2sms +++ b/localmarkdown2sms @@ -81,8 +81,10 @@ if ($stripprefix) { $sms_errto2 =~ s/^\+//g; } -# strip non-word chars from keyword (and use only first chunk of word chars) -$key =~ s/^.*?([a-zæøåÆØÅ!@\/][a-zæøåÆØÅ0-9-]+).*?$/$1/; +# strip non-word chars from keyword +$key = transliterate($sms_cp, $key); +# use only first chunk of word chars as keyword +$key =~ s/^(\S+).*?$/$1/; if ($debug) { Log::Log4perl->easy_init($DEBUG); |