mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2024-12-24 06:28:26 +03:00
8 lines
195 B
JavaScript
8 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;
|