export function getFileNameFromUrl ( url ) { const lastSegment = url . substring ( url . lastIndexOf ( '/' ) + 1 ) ; const queryStringStartPos = lastSegment . indexOf ( '?' ) ; return queryStringStartPos < 0 ? lastSegment : lastSegment . substring ( 0 , queryStringStartPos ) ; } export function getAssemblyNameFromUrl ( url ) { return getFileNameFromUrl ( url ) . replace ( /\.dll$/ , '' ) ; }