(href)
| 6299 | } |
| 6300 | |
| 6301 | function extractId(href) { |
| 6302 | return href.replace(/^[a-z-]+:\/+?[^\/]+/, '' ) // Remove protocol & domain |
| 6303 | .replace(/^\//, '' ) // Remove root / |
| 6304 | .replace(/\.[a-zA-Z]+$/, '' ) // Remove simple extension |
| 6305 | .replace(/[^\.\w-]+/g, '-') // Replace illegal characters |
| 6306 | .replace(/\./g, ':'); // Replace dots with colons(for valid id) |
| 6307 | } |
| 6308 | |
| 6309 | function errorConsole(e, rootHref) { |
| 6310 | var template = '{line} {content}'; |
no outgoing calls
no test coverage detected