Chore: Allow @ character in message tags & set max length to 100 characters per tag

This commit is contained in:
Ralph Slooten
2026-01-17 11:12:45 +13:00
parent 45b3676e52
commit 7cda4a36f1
4 changed files with 14 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ export default {
return {
mailbox,
editableTags: [],
validTagRe: /^([a-zA-Z0-9\- ._]){1,}$/,
validTagRe: /^([a-zA-Z0-9\- ._@]){1,100}$/,
tagToDelete: false,
};
},
@@ -28,7 +28,7 @@ export default {
methods: {
validTag(t) {
if (!t.after.match(/^([a-zA-Z0-9\- _.]){1,}$/)) {
if (!t.after.match(/^([a-zA-Z0-9\- ._@]){1,100}$/)) {
return false;
}

View File

@@ -467,7 +467,7 @@ export default {
data-allow-clear="true"
data-placeholder="Add tags..."
data-badge-style="secondary"
data-regex="^([a-zA-Z0-9\-\ \_\.]){1,}$"
data-regex="^([a-zA-Z0-9\-\ \_\.@]){1,100}$"
data-separator="|,|"
>
<option value="">Type a tag...</option>