Skip to content

chore(regexp): add missing match keyword to regexp and extended-length-path#13351

Draft
Planeshifter wants to merge 2 commits into
developfrom
philipp/drift-regexp-2026-07-07
Draft

chore(regexp): add missing match keyword to regexp and extended-length-path#13351
Planeshifter wants to merge 2 commits into
developfrom
philipp/drift-regexp-2026-07-07

Conversation

@Planeshifter

Copy link
Copy Markdown
Member

Description

Adds the missing match keyword to @stdlib/regexp/regexp/package.json and @stdlib/regexp/extended-length-path/package.json. The keyword is present in 23 of 27 sibling packages under @stdlib/regexp/* (85.2%); these two were the only regex-producing outliers. The two remaining packages without it — reviver and to-json — legitimately lack it since neither performs a match: reviver deserializes a JSON representation into a RegExp instance and to-json serializes a RegExp in the opposite direction.

regexp/regexp

The package's own JSDoc summary reads "regular expression to parse a regular expression string" — it matches regex-literal syntax. The absent keyword contradicts that description.

regexp/extended-length-path

The package's own main.js returns a regular expression that matches extended-length Windows paths. The absent keyword contradicts that description.

Related Issues

This pull request has no related issues.

Questions

No.

Other

The change was produced by an automated cross-package drift audit over the 27 non-autogenerated members of @stdlib/regexp/*. Three independent reviewer agents (semantic, cross-reference, structural) confirmed both corrections. Total diff is 3 LOC across 2 files.

No other drift corrections survived filtering. Outliers dropped as intentional deviations: reviver and to-json missing test/test.main.js (their main.js is the tested function, no separate factory to exercise); color-hexadecimal inlining regex constants in lib/index.js rather than following the lib/regexp.js convention (74.07% sibling conformance — below the 75% majority threshold; three-constant split has no clean sibling analog). Missing ## See Also sections in five packages were skipped as auto-populated by the package generator.

Only the in-repo consumer of package.json keywords is the _tools/search/pkg-index full-text index (bag-of-words, order-independent), so keyword insertion position is not observable to downstream tooling.

Checklist

AI Assistance

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

This PR was authored by Claude Code as part of an automated cross-package drift detection routine over @stdlib/regexp/*. Three independent reviewer agents (semantic, cross-reference, structural) confirmed each candidate before the fixes were applied. A maintainer should promote out of draft after review.


@stdlib-js/reviewers


Generated by Claude Code

claude added 2 commits July 7, 2026 04:24
Adds the `match` keyword to `@stdlib/regexp/regexp/package.json`. The
keyword is present in 23 of 27 sibling packages (85.2%) — all sibling
regex-producer packages that describe a match target carry it. The
package's own JSDoc summary reads "regular expression to parse a
regular expression string", i.e. it matches regex-literal syntax; the
absent keyword contradicts that description.
Adds the `match` keyword to
`@stdlib/regexp/extended-length-path/package.json`. The keyword is
present in 23 of 27 sibling packages (85.2%). The package's own
`main.js` describes returning a regular expression that matches an
extended-length Windows path; the absent keyword contradicts that
description.
@stdlib-bot

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
regexp/extended-length-path $\\color{green}143/143$
$\\color{green}+100.00\\%$
$\\color{green}4/4$
$\\color{green}+100.00\\%$
$\\color{green}1/1$
$\\color{green}+100.00\\%$
$\\color{green}143/143$
$\\color{green}+100.00\\%$
regexp/regexp $\\color{green}173/173$
$\\color{green}+100.00\\%$
$\\color{green}4/4$
$\\color{green}+100.00\\%$
$\\color{green}1/1$
$\\color{green}+100.00\\%$
$\\color{green}173/173$
$\\color{green}+100.00\\%$

The above coverage report was generated for the changes in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants