(normLink)
| 65 | } |
| 66 | |
| 67 | export function urlToID (normLink) { |
| 68 | let hashInt = normLink.split("").reduce(function(a,b){a=((a<<5)-a)+b.charCodeAt(0);return a&a},0) |
| 69 | return `${normLink.split('/')[0]}-${(hashInt >>> 0).toString(16)}` |
| 70 | } |
| 71 | |
| 72 | export function followTitle(follow) { |
| 73 | return (follow.title || follow.actualTitle || follow.url).toString() |
no outgoing calls
no test coverage detected