export const removeLeadingSlash = ( s ) : string => s . replace ( /^\/+/ , '' ) ; export const removeTailSlash = ( s ) : string => s . replace ( /\/+$/ , '' ) ; export const removeSlash = ( s ) : string => removeLeadingSlash ( removeTailSlash ( s ) ) ;