Tests failed on Ubuntu due to regular expression - corrected regex and now it works.
This commit is contained in:
2
todo.sh
2
todo.sh
@@ -1007,7 +1007,7 @@ _format()
|
|||||||
printf "%s", prj_beg words[i] prj_end
|
printf "%s", prj_beg words[i] prj_end
|
||||||
} else if (words[i] ~ /^[@].*[A-Za-z0-9_]$/) {
|
} else if (words[i] ~ /^[@].*[A-Za-z0-9_]$/) {
|
||||||
printf "%s", ctx_beg words[i] ctx_end
|
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
|
printf "%s", dat_beg words[i] dat_end
|
||||||
} else if (words[i] ~ /^[[:alnum:]]+:[^ ]+$/) {
|
} else if (words[i] ~ /^[[:alnum:]]+:[^ ]+$/) {
|
||||||
printf "%s", met_beg words[i] met_end
|
printf "%s", met_beg words[i] met_end
|
||||||
|
|||||||
Reference in New Issue
Block a user