Skip to content

tools: remove superfluous regex in tools/doc/json.js - #33998

Merged
Trott merged 0 commit into
nodejs:masterfrom
Trott:nocallorprop
Jun 23, 2020
Merged

tools: remove superfluous regex in tools/doc/json.js#33998
Trott merged 0 commit into
nodejs:masterfrom
Trott:nocallorprop

Conversation

@Trott

@TrottTrott commented Jun 21, 2020

Copy link
Copy Markdown
Member

Remove noCallOrProp from tools/doc/json.js. It is a negative lookahead
that is only used in one regex where it is placed immediately before a
terminating $, thus rendering it meaningless.

I ran make doc with this change and confirmed that the contents of out/doc were unchanged.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added doc Issues and PRs related to the documentations. tools Issues and PRs related to the tools directory. labels Jun 21, 2020
@TrottTrott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jun 22, 2020
@Trott

Copy link
Copy Markdown
MemberAuthor

I guess we need a regex team or something. 😆 Let's try: /ping @davisjam

@davisjam

Copy link
Copy Markdown
Contributor

I agree that the new regex is equivalent to the previous version.

(Happy to ponder other regexes as they come up ;-))

@davisjamdavisjam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Trott

Copy link
Copy Markdown
MemberAuthor

Landed in d408ee1

@TrottTrott closed this Jun 23, 2020
@Trott
Trott merged commit d408ee1 into nodejs:masterJun 23, 2020
@Trott
Trott deleted the nocallorprop branch June 23, 2020 22:33
codebytere pushed a commit that referenced this pull request Jun 27, 2020
Remove noCallOrProp from tools/doc/json.js. It is a negative lookahead
that is only used in one regex where it is placed immediately before a
terminating $, thus rendering it meaningless.
PR-URL: #33998
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jamie Davis <davisjam@vt.edu>
@codebyterecodebytere mentioned this pull request Jun 28, 2020
codebytere pushed a commit that referenced this pull request Jun 30, 2020
Remove noCallOrProp from tools/doc/json.js. It is a negative lookahead
that is only used in one regex where it is placed immediately before a
terminating $, thus rendering it meaningless.
PR-URL: #33998
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jamie Davis <davisjam@vt.edu>
codebytere pushed a commit that referenced this pull request Jul 10, 2020
Remove noCallOrProp from tools/doc/json.js. It is a negative lookahead
that is only used in one regex where it is placed immediately before a
terminating $, thus rendering it meaningless.
PR-URL: #33998
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jamie Davis <davisjam@vt.edu>
codebytere pushed a commit that referenced this pull request Jul 12, 2020
Remove noCallOrProp from tools/doc/json.js. It is a negative lookahead
that is only used in one regex where it is placed immediately before a
terminating $, thus rendering it meaningless.
PR-URL: #33998
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jamie Davis <davisjam@vt.edu>
@codebyterecodebytere mentioned this pull request Jul 13, 2020
codebytere pushed a commit that referenced this pull request Jul 14, 2020
Remove noCallOrProp from tools/doc/json.js. It is a negative lookahead
that is only used in one regex where it is placed immediately before a
terminating $, thus rendering it meaningless.
PR-URL: #33998
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jamie Davis <davisjam@vt.edu>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.docIssues and PRs related to the documentations.toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Trott@davisjam@lpinca@nodejs-github-bot