Skip to content

Conversation

Trott
Copy link
Member

@Trott Trott commented Nov 22, 2016

v4 backport of #9449 @thealphanerd

The . character does not need to be escaped when it appears inside a
regular expression character class. This removes instances of
unnecessary escapes of the . character.

This also removes a few unnecessary escapes of the ( and )
characters within character classes too.

PR-URL: #9449
Reviewed-By: Roman Reiss [email protected]
Reviewed-By: Colin Ihrig [email protected]
Reviewed-By: Minwoo Jung [email protected]
Reviewed-By: James Snell [email protected]

The `.` character does not need to be escaped when it appears inside a
regular expression character class. This removes instances of
unnecessary escapes of the `.` character.

This also removes a few unnecessary escapes of the `(` and `)`
characters within character classes too.

PR-URL: nodejs#9449
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
Reviewed-By: James Snell <[email protected]>
@nodejs-github-bot nodejs-github-bot added tls Issues and PRs related to the tls subsystem. tools Issues and PRs related to the tools directory. v4.x labels Nov 22, 2016
@mscdex mscdex changed the title benchmark,lib,test,tools: remove unneeded . escape v4 backport: benchmark,lib,test,tools: remove unneeded . escape Nov 22, 2016
Copy link
Contributor

@not-an-aardvark not-an-aardvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MylesBorins
Copy link
Contributor

landed in 7b4268b

@Trott Trott deleted the backport-v4-9449 branch January 13, 2022 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tls Issues and PRs related to the tls subsystem. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants