mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2024-12-24 22:48:30 +03:00
9 lines
195 B
JavaScript
9 lines
195 B
JavaScript
|
const isBlankString = (event, value, field) => {
|
||
|
if (!value.replace(/\s/g, '').length) {
|
||
|
event.preventDefault();
|
||
|
alert(`${field} can't be empty`);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default isBlankString;
|