shlr/www/graph/index.js
function stripExtension(url) {
  var lastDotPos = url.lastIndexOf('.');
  return (lastDotPos <= 0)? url:
    url.substring (0, lastDotPos - 1);
}
function stripExtension(url) {
  var lastDotPos = url.lastIndexOf('.');
  return (lastDotPos <= 0)? url:
    url.substring (0, lastDotPos - 1);
}
function stripExtension ( url ) { var lastDotPos = url . lastIndexOf ( '.' ) ; return ( lastDotPos <= 0 ) ? url : url . substring ( 0 , lastDotPos - 1 ) ; }
Strips the file extension and everything after from a url
Strips the file extension and everything after from a url