mirror of
https://github.com/axllent/mailpit.git
synced 2026-06-28 06:56:06 +00:00
Chore: Allow @ character in message tags & set max length to 100 characters per tag
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user