@appcorp/fusion-storybook 0.2.90 → 0.2.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export declare function normalizeIdNumber(value: unknown): string | null | undefined;
@@ -0,0 +1,10 @@
1
+ export function normalizeIdNumber(value) {
2
+ if (value === null)
3
+ return null;
4
+ if (typeof value !== "string")
5
+ return undefined;
6
+ const stripped = value.replace(/\D/g, "");
7
+ if (stripped.length === 13)
8
+ return stripped;
9
+ return value;
10
+ }