(cherry picked from commit bdd5865876796bc203c8117418a5389afc8b5f11) Closes #2751pull/4068/head
parent
789261ba6b
commit
e3bc824dc1
@ -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