Fix is.urlString documentation
This commit is contained in:
parent
6cb1d1e910
commit
7a481d36b3
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue