Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Escape version strings passed to regular expression matchers #147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

richardlau
Copy link
Member

Version strings in process.versions should be escaped before being
used to construct regular expressions. Fixes tests when run against
current Node.js master branch where OpenSSL has a + character in
its version string.

Refs: nodejs/citgm#852 (comment)

Version strings in `process.versions` should be escaped before being
used to construct regular expressions. Fixes tests when run against
current Node.js master branch where OpenSSL has a `+` character in
its version string.
@richardlau
Copy link
Member Author

richardlau commented Mar 21, 2021

@richardlau
Copy link
Member Author

richardlau commented Mar 21, 2021

CI against master showing failures with Node.js 15: https://ci.nodejs.org/job/nodereport-continuous-integration-latest/219/
CI against this PR with Node.js 15: https://ci.nodejs.org/job/nodereport-continuous-integration-latest/222/
Single failure on AIX, which is unrelated to this PR and is the same as we see in the citgm-smoker-nobuild job: nodejs/build#2558.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant