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 instead of String#indexOf #337

Closed
wants to merge 5 commits into from

Conversation

andria-dev
Copy link

@andria-dev andria-dev commented Dec 31, 2019

Fixes #336

In all instances where String#indexOf was used to determine if a substring existed, I replaced the calls with String#includes.

Affected files:

  • live-server.js
  • test/cli.js
  • test/acceptance.js
  • injected.html
  • index.js

All tests passed locally with all the changes in this PR 👍

@andria-dev andria-dev closed this Jul 23, 2024
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.

Use String#includes to see if a substring exists instead of indexOf
1 participant