Fix is.urlString documentation

This commit is contained in:
Itai Steinherz 2018-12-13 23:16:39 +02:00 committed by GitHub
parent 6cb1d1e910
commit 7a481d36b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,7 +255,7 @@ is.urlInstance(url);
//=> true //=> true
``` ```
### .url(value) ### .urlString(value)
Returns `true` if `value` is a URL string. Returns `true` if `value` is a URL string.
@ -264,10 +264,10 @@ Note: this only does basic checking using the [`URL` class](https://developer.mo
```js ```js
const url = 'https://example.com'; const url = 'https://example.com';
is.url(url); is.urlString(url);
//=> true //=> true
is.url(new URL(url)); is.urlString(new URL(url));
//=> false //=> false
``` ```