Fix tests on Debian (#326)
Corrected an additional regex to match tags on mawk 1.3.3 in Debian
This commit is contained in:
2
todo.sh
2
todo.sh
@@ -1009,7 +1009,7 @@ _format()
|
|||||||
printf "%s", ctx_beg words[i] ctx_end
|
printf "%s", ctx_beg words[i] ctx_end
|
||||||
} else if (words[i] ~ /^(19|20)[0-9][0-9]-(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] ~ /^[A-Za-z0-9]+:[^ ]+$/) {
|
||||||
printf "%s", met_beg words[i] met_end
|
printf "%s", met_beg words[i] met_end
|
||||||
} else {
|
} else {
|
||||||
printf "%s", words[i]
|
printf "%s", words[i]
|
||||||
|
|||||||
Reference in New Issue
Block a user