aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-12-03 11:45:26 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-12-03 11:45:26 +0000
commit407408b1691a665f1432a13c89b9abd7b55feb6b (patch)
treeabd859572c3f17822f928b4c20c7e751554053e9
parentd1b4f36670725a09a633b887f586730d5f167db1 (diff)
space
-rwxr-xr-xtw_hooks/on-add_scheduled_work_task.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tw_hooks/on-add_scheduled_work_task.pl b/tw_hooks/on-add_scheduled_work_task.pl
index 4db2812..1c837b2 100755
--- a/tw_hooks/on-add_scheduled_work_task.pl
+++ b/tw_hooks/on-add_scheduled_work_task.pl
@@ -34,6 +34,7 @@ my $decoded_task = decode_json $added_task;
my $original_description = ${$decoded_task}{description};
my $tdelta;
my $trepeat;
+
if (($original_description =~ m/$token_regexes{tdelta}/g)) {
$tdelta = "+$1";
$original_description =~ s/$token_regexes{tdelta}//g; # remove the delta time token