regex: fix newline matching with negated brackets
authorJulien Ramseier <j.ramseier@gmail.com>
Tue, 21 Mar 2017 16:24:23 +0000 (12:24 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 21 Mar 2017 16:24:23 +0000 (12:24 -0400)
commit9571c5314a8064eda8a56faa2ae2aeced34497a3
tree9120ec538b42accd4bf44c73c66f20943cd8ad81
parente6917eced2cc841fe3dfd9c04deec9202f9e34f3
regex: fix newline matching with negated brackets

With REG_NEWLINE, POSIX says:
"A <newline> in string shall not be matched by a period outside
a bracket expression or by any form of a non-matching list"
src/regex/regcomp.c