Fix tests on Debian (#326)

Corrected an additional regex to match tags on mawk 1.3.3 in Debian
This commit is contained in:
Tyler Szabo
2020-12-04 13:32:53 -08:00
committed by GitHub
parent 797604e2b6
commit 6188785e48

View File

@@ -1009,7 +1009,7 @@ _format()
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])$/) {
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
} else {
printf "%s", words[i]