MCPcopy Create free account
hub / github.com/microsoft/SandDance / invalidUrlError

Function invalidUrlError

packages/sanddance-app/src/url.ts:5–12  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

3import { strings } from './language';
4
5export function invalidUrlError(url: string) {
6 if (!url) {
7 return strings.errorNoUrl;
8 }
9 if (url.toLocaleLowerCase().substr(0, 4) !== 'http') {
10 return strings.errorUrlHttp;
11 }
12}

Callers 3

renderMethod · 0.90
loadUrlMethod · 0.90
renderMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected