( s1 , s2)
| 261 | //compute the length of the common prefix between two strings |
| 262 | // duplicated indexscript.js |
| 263 | var prefixLen = function( s1 , s2) { |
| 264 | var maxMatchLen = Math.min(s1.length, s2.length); |
| 265 | var res = -1; |
| 266 | while (++res < maxMatchLen) { |
| 267 | if (s1.charAt(res) != s2.charAt(res)) |
| 268 | break; |
| 269 | } |
| 270 | return res * 256 + 256 - s1.length; |
| 271 | } |
| 272 | |
| 273 | function absoluteUrl(relative) { |
| 274 | var a = document.createElement('a'); |
no outgoing calls
no test coverage detected