source:
node_modules/@reduxjs/toolkit/src/query/utils/isAbsoluteUrl.ts
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 189 bytes | |
| Line | |
|---|---|
| 1 | /** |
| 2 | * If either :// or // is present consider it to be an absolute url |
| 3 | * |
| 4 | * @param url string |
| 5 | */ |
| 6 | |
| 7 | export function isAbsoluteUrl(url: string) { |
| 8 | return new RegExp(`(^|:)//`).test(url) |
| 9 | } |
Note:
See TracBrowser
for help on using the repository browser.
