diff options
author | Jonas Smedegaard <dr@jones.dk> | 2009-08-08 19:45:47 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2009-08-08 19:45:47 +0200 |
commit | 9145cd2544a5c52962dc2244eed89e3bd942b863 (patch) | |
tree | fabdb9556f9b54af4febc72bfc6e24116c8a506b /localmarkdown2sms | |
parent | e95c6c1e4964dd84e29ba1be6fce75f5e9e1676a (diff) |
Fix grab multiple delays in same string.
Diffstat (limited to 'localmarkdown2sms')
-rwxr-xr-x | localmarkdown2sms | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/localmarkdown2sms b/localmarkdown2sms index 2959544..100ef52 100755 --- a/localmarkdown2sms +++ b/localmarkdown2sms @@ -68,7 +68,7 @@ foreach my $file (read_dir( $path )) { $key = undef; } # delay - } elsif ($level == 2 and $content =~ /(\d+[sm](\s+|\Z))+/) { + } elsif ($level == 2 and $content =~ /((\d+[sm](\s+|\Z))+)/) { if (defined( $key)) { my $delay = parse_duration($1); if (defined($reply{$key}[$i])) { |