From 797604e2b606ffeb7625c8ab792aeb8b6b6e700e Mon Sep 17 00:00:00 2001 From: Daniel M Date: Fri, 20 Nov 2020 21:33:06 -0500 Subject: [PATCH] Fixed tests on ubuntu #317 (#322) Tests failed on Ubuntu due to regular expression - corrected regex and now it works. --- todo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.sh b/todo.sh index 671ee48..1de99af 100755 --- a/todo.sh +++ b/todo.sh @@ -1007,7 +1007,7 @@ _format() printf "%s", prj_beg words[i] prj_end } else if (words[i] ~ /^[@].*[A-Za-z0-9_]$/) { printf "%s", ctx_beg words[i] ctx_end - } else if (words[i] ~ /^(19|20)[0-9]{2}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/) { + } else if (words[i] ~ /^(19|20)[0-9][0-9]-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/) { printf "%s", dat_beg words[i] dat_end } else if (words[i] ~ /^[[:alnum:]]+:[^ ]+$/) { printf "%s", met_beg words[i] met_end