(href)
| 12 | |
| 13 | // Is the url an iniline data-uri |
| 14 | function 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 |
| 23 | function isRelative(href) { |
no outgoing calls
no test coverage detected
searching dependent graphs…