Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### isAbsoluteURL
|
||||
---
|
||||
title: isAbsoluteURL
|
||||
tags: string,utility,browser,url,intermediate
|
||||
---
|
||||
|
||||
Returns `true` if the given string is an absolute URL, `false` otherwise.
|
||||
|
||||
@ -12,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