Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use String.includes() when possible #675

Closed
wants to merge 1 commit into from
Closed

Use String.includes() when possible #675

wants to merge 1 commit into from

Conversation

XhmikosR
Copy link
Contributor

@XhmikosR XhmikosR commented Jan 10, 2020

IMHO this is cleaner and should work with Node.js 6.x and newer, but CI should tell us for sure :)

@XhmikosR XhmikosR requested a review from a team as a code owner January 10, 2020 08:19
@XhmikosR XhmikosR changed the title Use default params and String.includes() when possible Use String.includes() when possible Jan 29, 2020
@mikemimik mikemimik added Community Enhancement new feature or improvement semver:patch semver patch level for changes labels Feb 12, 2020
@XhmikosR
Copy link
Contributor Author

Another good change IMO would be to use startsWith/endsWith but that's for another time :)

@darcyclarke
Copy link
Contributor

@XhmikosR Thanks for the contribution! Unfortunately, these changes land quite a bit of churn into the codebase & we'll actually be refactoring a lot of this out for the next major version of the CLI.

We're going to queue up some smaller refactoring issues/tasks for npm v7 soon that may be perfect for you to jump on; But, for now, we're going to close out any PRs for minor mods at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement new feature or improvement semver:patch semver patch level for changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants