Remove `g` option from REGEX_NEWLINE.

This ensures that successive calls to `test` for newline characters
will always return `true`. Using `g` will cause every other `test`
call to return `false` and is not required for the other usage.