You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
const regex = /\d+/g;
|
|
|
|
function naturalExpansion(input) {
|
|
if (!input) {
|
|
return '';
|
|
}
|
|
|
|
return input.replace(regex, (n) => n.padStart(8, '0'));
|
|
}
|
|
|
|
export default naturalExpansion;
|