We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78d5d5a + f009202 commit 143fb05Copy full SHA for 143fb05
containers/Monitor/views/commonalert/components/new-alert/form/index.vue
@@ -1028,7 +1028,8 @@ export default {
1028
if (value) {
1029
let val = value
1030
if ((fd.tagOperators[key] === '=~' || fd.tagOperators[key] === '!~') && val && val.length) {
1031
- val = `/${val.map(v => `^${v}$`).join('|')}/`
+ const arr = Array.isArray(val) ? val : [val]
1032
+ val = `/${arr.map(v => `^${v}$`).join('|')}/`
1033
}
1034
const tag = {
1035
key: fd.tagKeys[key],
0 commit comments