Skip to content

Fix implementation of PackageName#library_name#5119

Merged
mattt merged 4 commits intomainfrom
mattt/fix-types-package-check
May 10, 2022
Merged

Fix implementation of PackageName#library_name#5119
mattt merged 4 commits intomainfrom
mattt/fix-types-package-check

Conversation

@mattt
Copy link
Copy Markdown
Contributor

@mattt mattt commented May 10, 2022

The current logic for determining whether a package has the Definitely Typed @types scope uses an unanchored regular expression, causing false positives on packages like @typescript-eslint/parser.

This PR replaces the check with the casecmp? method, which performs a case-insensitive string equality check.

@mattt mattt requested a review from a team as a code owner May 10, 2022 18:14
@mattt mattt requested review from landongrindheim and pavera May 10, 2022 18:14
@mattt mattt enabled auto-merge May 10, 2022 18:18
@mattt mattt merged commit ad892ce into main May 10, 2022
@mattt mattt deleted the mattt/fix-types-package-check branch May 10, 2022 18:58
@mattt mattt mentioned this pull request May 10, 2022
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