From e146493843dbf3decc32af6474a2389e07f40e5b Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Tue, 1 Sep 2020 06:13:13 +1000 Subject: [PATCH] docs: Fix simple typo, comparition -> comparison There is a small typo in index.js, page.js, test/page.js. Should read `comparison` rather than `comparition`. --- index.js | 2 +- page.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 925b253..0fc9107 100755 --- a/index.js +++ b/index.js @@ -498,7 +498,7 @@ https, internet explorer 11 returns an empty string for loc.port, so we need to compare loc.port with an empty string if url.port is the default port 80 or 443. - Also the comparition with `port` is changed from `===` to `==` because + Also the comparison with `port` is changed from `===` to `==` because `port` can be a string sometimes. This only applies to ie11. */ return loc.protocol === url.protocol && diff --git a/page.js b/page.js index 99c0a6f..925d02c 100644 --- a/page.js +++ b/page.js @@ -898,7 +898,7 @@ pathToRegexp_1.tokensToRegExp = tokensToRegExp_1; https, internet explorer 11 returns an empty string for loc.port, so we need to compare loc.port with an empty string if url.port is the default port 80 or 443. - Also the comparition with `port` is changed from `===` to `==` because + Also the comparison with `port` is changed from `===` to `==` because `port` can be a string sometimes. This only applies to ie11. */ return loc.protocol === url.protocol &&