@trackunit/shared-utils 1.14.2 → 1.14.4
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.
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -473,7 +473,7 @@ function groupTinyDataToOthers(data, smallestCount = 0.5, limitToStartGrouping =
|
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
const UUID_HYPHEN_POSITIONS = [8, 12, 16, 20];
|
|
476
|
-
const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-
|
|
476
|
+
const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
477
477
|
/**
|
|
478
478
|
* A utility function to test whether a string is a valid UUID or not.
|
|
479
479
|
*
|
package/index.esm.js
CHANGED
|
@@ -471,7 +471,7 @@ function groupTinyDataToOthers(data, smallestCount = 0.5, limitToStartGrouping =
|
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
const UUID_HYPHEN_POSITIONS = [8, 12, 16, 20];
|
|
474
|
-
const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-
|
|
474
|
+
const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
475
475
|
/**
|
|
476
476
|
* A utility function to test whether a string is a valid UUID or not.
|
|
477
477
|
*
|