source: node_modules/@reduxjs/toolkit/src/query/utils/isAbsoluteUrl.ts@ a762898

Last change on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
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
7export function isAbsoluteUrl(url: string) {
8 return new RegExp(`(^|:)//`).test(url)
9}
Note: See TracBrowser for help on using the repository browser.