@regulaforensics/ui-components 8.5.717-rc → 8.5.720-rc
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/dist/core/index.cjs +1 -1
- package/dist/core/index.js +1 -1
- package/dist/main/index.cjs +1 -1
- package/dist/main/index.js +1 -1
- package/dist/typings/index.cjs +1 -1
- package/dist/typings/index.js +1 -1
- package/package.json +1 -1
package/dist/typings/index.js
CHANGED
|
@@ -3422,7 +3422,7 @@ function requireIsLength$1() {
|
|
|
3422
3422
|
(0, _assertString.default)(str);
|
|
3423
3423
|
var min2, max;
|
|
3424
3424
|
_typeof(options) === "object" ? (min2 = options.min || 0, max = options.max) : (min2 = arguments[1] || 0, max = arguments[2]);
|
|
3425
|
-
var presentationSequences = str.match(/
|
|
3425
|
+
var presentationSequences = str.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g) || [], surrogatePairs = str.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g) || [], len = str.length - presentationSequences.length - surrogatePairs.length, isInsideRange = len >= min2 && (typeof max > "u" || len <= max);
|
|
3426
3426
|
return isInsideRange && Array.isArray(options?.discreteLengths) ? options.discreteLengths.some(function(discreteLen) {
|
|
3427
3427
|
return discreteLen === len;
|
|
3428
3428
|
}) : isInsideRange;
|