(cherry picked from commit bdd5865876796bc203c8117418a5389afc8b5f11)pull/7691/head
parent
8fe81b428a
commit
5316382113
@ -0,0 +1,11 @@
|
||||
const regex = /\d+/g;
|
||||
|
||||
function naturalExpansion(input) {
|
||||
if (!input) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return input.replace(regex, (n) => n.padStart(8, '0'));
|
||||
}
|
||||
|
||||
export default naturalExpansion;
|
Loading…
Reference in new issue