Deprecate utility tag
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: isAbsoluteURL
|
||||
tags: string,utility,browser,url,intermediate
|
||||
tags: string,browser,url,intermediate
|
||||
---
|
||||
|
||||
Returns `true` if the given string is an absolute URL, `false` otherwise.
|
||||
@ -15,4 +15,4 @@ const isAbsoluteURL = str => /^[a-z][a-z0-9+.-]*:/.test(str);
|
||||
isAbsoluteURL('https://google.com'); // true
|
||||
isAbsoluteURL('ftp://www.myserver.net'); // true
|
||||
isAbsoluteURL('/foo/bar'); // false
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user