We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcad913 commit 7f798c2Copy full SHA for 7f798c2
src/index.tsx
@@ -144,7 +144,7 @@ const ReactInputVerificationCode = ({
144
const pastedString = e.clipboardData?.getData('text');
145
if (!pastedString) return;
146
147
- const isNumber = new RegExp(/^\d+$/).test(pastedString);
+ const isNumber = /^\d+$/.test(pastedString);
148
if (isNumber) setValue(pastedString.split('').slice(0, length));
149
};
150
0 commit comments