(href)
| 3 | |
| 4 | // Is the url an external url |
| 5 | function isExternal(href) { |
| 6 | try { |
| 7 | return Boolean(url.parse(href).protocol) && !isDataURI(href); |
| 8 | } catch(err) { |
| 9 | return false; |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | // Is the url an iniline data-uri |
| 14 | function isDataURI(href) { |
no test coverage detected