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

Replaced String.includes() with indexOf() due to IE incompatibility #45

Merged
merged 1 commit into from
Apr 30, 2018

Conversation

luish
Copy link
Contributor

@luish luish commented Apr 30, 2018

Closes #44

What:
Replaced a use of String.prototype.includes with String.prototype.indexOf.

Why:
The method mentioned above is not supported by Internet Explorer, causing the lib to err when the user hasn't added a polyfill on the application side.

See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes#Browser_compatibility

How:

Checklist:

  • Documentation N/A
  • Tests - tests are passing, no need to add/change tests.
  • Ready to be merged
  • Added myself to contributors table

Copy link
Owner

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Thanks.

@kentcdodds kentcdodds merged commit 486549f into kentcdodds:master Apr 30, 2018
@luish luish deleted the issues/string.includes branch April 30, 2018 16:27
@kentcdodds
Copy link
Owner

🎉 This PR is included in version 2.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

2 participants