mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: add regex check on blur
This commit is contained in:
1 parent
f4e2a0174b
commit
da1ec97876
1 file changed
+4
@@ -51,6 +51,10 @@
|
||||
};
|
||||
|
||||
const addValue = () => {
|
||||
if (validityRegex && !validityRegex.test(value)) {
|
||||
error = validityMessage ? validityMessage : 'Invalid value';
|
||||
return;
|
||||
}
|
||||
let tag = value.trim();
|
||||
if (tag.length === 0 || tags.includes(tag)) return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user