| Index: lib/url.js |
| =================================================================== |
| --- a/lib/url.js |
| +++ b/lib/url.js |
| @@ -66,17 +66,17 @@ |
| */ |
| function* domainSuffixes(domain, includeBlank = false) |
| { |
| while (domain != "") |
| { |
| yield domain; |
| let dotIndex = domain.indexOf("."); |
| - domain = dotIndex == -1 ? "" : domain.substr(dotIndex + 1); |
| + domain = dotIndex == -1 ? "" : domain.substring(dotIndex + 1); |
|
Manish Jethani
2019/02/21 15:04:39
This is a hot spot, let's leave it as it is.
hub
2019/02/21 18:09:42
Done.
|
| } |
| if (includeBlank) |
| yield ""; |
| } |
| exports.domainSuffixes = domainSuffixes; |