UI: fix log trace areas with special characters (#17780)

This commit is contained in:
Michael Geers 2024-12-18 12:16:16 +01:00 • committed by GitHub
parent 67c0d7ab78
commit e7997fe16e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -197,7 +197,7 @@ export default {
},
},
watch: {
selectedAreas() {
areas() {
this.updateLogs();
},
level() {
@ -339,7 +339,7 @@ export default {
--opacity: 1;
opacity: var(--opacity);
animation-name: fadeIn;
animation-duration: 1s;
animation-duration: var(--transition-duration-fast);
animation-fill-mode: forwards;
animation-timing-function: ease-out;
text-indent: 1rem hanging;
@ -361,9 +361,9 @@ export default {
color: var(--bs-danger);
}
.log-debug {
--opacity: 0.6;
--opacity: 0.7;
}
.log-trace {
--opacity: 0.4;
--opacity: 0.5;
}
</style>

View file

@ -9,7 +9,7 @@ import (
type element string
var re = regexp.MustCompile(`^\[([a-zA-Z0-9-]+)\s*\] (\w+) `)
var re = regexp.MustCompile(`^\[(.+?)\s*\] (\w+) `)
func (e element) areaLevel() (string, jww.Threshold) {
m := re.FindAllStringSubmatch(string(e), 1)