Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Replace @ndhoule/includes with lodash.includes #211

Merged
merged 2 commits into from
Sep 16, 2020

Conversation

bryanmikaelian
Copy link
Contributor

@bryanmikaelian bryanmikaelian commented Sep 16, 2020

Description

This PR replaces includes, provided by @ndhoule/includes, with the one provided by lodash.includes. Unfortunately, we cannot leverage String.prototype.includes because it is not available in any version of IE.

Test plan

Testing completed successfully using e2e tests and unit tests. See examples below:

  • Triggering a page call on a HTML document with a <link rel="canonical" href="http://taco:3000" />

Screen Shot 2020-09-16 at 4 05 44 PM

Screen Shot 2020-09-16 at 4 03 31 PM

  • Triggering a page call on a HTML document with a <link rel="canonical" href="http://taco:3000?cheese=false" />

Screen Shot 2020-09-16 at 4 07 47 PM

Screen Shot 2020-09-16 at 4 07 18 PM

  • Triggering page with no canonical url
    Screen Shot 2020-09-16 at 4 08 28 PM

Checklist

  • Thorough explanation of the issue/solution, and a link to the related issue
  • CI tests are passing
  • Unit tests were written for any new code
  • Code coverage is at least maintained, or increased.

@bryanmikaelian bryanmikaelian marked this pull request as ready for review September 16, 2020 20:09
@bryanmikaelian bryanmikaelian requested a review from a team September 16, 2020 20:09
@bryanmikaelian bryanmikaelian merged commit c70c3af into master Sep 16, 2020
@bryanmikaelian bryanmikaelian deleted the bryan/replace-includes branch September 16, 2020 20:22
juliofarah added a commit that referenced this pull request Mar 19, 2021
hbrls pushed a commit to nice-fungal/analytics.js-core that referenced this pull request Apr 16, 2021
hbrls pushed a commit to nice-fungal/analytics.js-core that referenced this pull request Apr 16, 2021
hbrls pushed a commit to nice-fungal/analytics.js-core that referenced this pull request Apr 16, 2021
hbrls pushed a commit to nice-fungal/analytics.js-core that referenced this pull request Apr 16, 2021
hbrls pushed a commit to nice-fungal/analytics.js-core that referenced this pull request May 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants