Skip to content

Commit

Permalink
Fix: Removing reliance on String includes (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Press authored Mar 6, 2018
1 parent 79ec9da commit 6724275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/downloadReachability.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function isCustomDownloadHost(downloadUrl) {
// 2. or starts with a custom prefix and ends with boxcloud.com
return (
!downloadUrl.startsWith(DEFAULT_DOWNLOAD_HOST_PREFIX) &&
(!!downloadUrl.match(NUMBERED_HOST_PREFIX_REGEX) || downloadUrl.includes(PROD_CUSTOM_HOST_SUFFIX))
(!!downloadUrl.match(NUMBERED_HOST_PREFIX_REGEX) || downloadUrl.indexOf(PROD_CUSTOM_HOST_SUFFIX) !== -1)
);
}

Expand Down

0 comments on commit 6724275

Please sign in to comment.