function pad ( n ) { return ( '00000000' + n ) . substr ( - 8 ) ; } export function naturalExpand ( value ) { let str = typeof value === 'string' ? value : value . toString ( ) ; return str . replace ( /\d+/g , pad ) ; }