mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-12 10:35:39 +00:00
frontend restructured
This commit is contained in:
8
frontend/templates/utils/isBlankString.js
Normal file
8
frontend/templates/utils/isBlankString.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const isBlankString = (event, value, field) => {
|
||||
if (!value.replace(/\s/g, '').length) {
|
||||
event.preventDefault();
|
||||
alert(`${field} can't be empty`);
|
||||
}
|
||||
};
|
||||
|
||||
export default isBlankString;
|
||||
Reference in New Issue
Block a user