MCPcopy
hub / github.com/mifi/editly / isUrl

Function isUrl

util.js:161–161  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

159}
160
161export const isUrl = (path) => /^https?:\/\//.test(path);
162
163export const assertFileValid = async (path, allowRemoteRequests) => {
164 if (isUrl(path)) {

Callers 2

loadImageFunction · 0.90
assertFileValidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected