UI: fix log trace areas with special characters (#17780)
This commit is contained in:
parent
67c0d7ab78
commit
e7997fe16e
2 changed files with 5 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue