export const getBaseImageName = ( description ? ) => { let name ; const tags = ( description || '' ) . split ( ', ' ) ; tags . forEach ( ( tag ) => { const keyVal = tag . split ( '=' ) ; if ( keyVal . length === 2 && keyVal [ 0 ] === 'ancestor_name' ) { name = keyVal [ 1 ] ; } } ) ; return name ; } ;