MCPcopy Index your code
hub / github.com/GitbookIO/gitbook / isDataURI

Function isDataURI

lib/utils/location.js:14–20  ·  view source on GitHub ↗
(href)

Source from the content-addressed store, hash-verified

12
13// Is the url an iniline data-uri
14function isDataURI(href) {
15 try {
16 return Boolean(url.parse(href).protocol) && (url.parse(href).protocol === 'data:');
17 } catch(err) {
18 return false;
19 }
20}
21
22// Inverse of isExternal
23function isRelative(href) {

Callers 2

isExternalFunction · 0.85
toAbsoluteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…