dhre-ui-kit 0.0.332 → 0.0.333
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/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +3 -0
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -4190,6 +4190,9 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
4190
4190
|
}
|
|
4191
4191
|
}));
|
|
4192
4192
|
const handleChange = (index, value) => {
|
|
4193
|
+
if (/^\.$/.test(value) || value === "\u25CF.") {
|
|
4194
|
+
return;
|
|
4195
|
+
}
|
|
4193
4196
|
const specialCharacterRegex = /[^a-zA-Z0-9 ]/;
|
|
4194
4197
|
if (value === "" || value?.length > 1 || !specialCharacterRegex.test(value)) {
|
|
4195
4198
|
const regex = /^\d+$/;
|