export function formatExtensions ( extensions ? ) { if ( ! extensions ) { return [ ] ; } const normalizedExtensions = extensions . map ( ( ext ) => ext . includes ( '.' ) ? ext . substring ( 1 ) : ext ) ; return normalizedExtensions ; }