mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
fix: Auto correcting code is broken in advance mode #50
This commit is contained in:
parent
f6a5f350ad
commit
e9f0835aea
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ const router = useRouter()
|
||||||
|
|
||||||
const name = ref(route.params.name.toString())
|
const name = ref(route.params.name.toString())
|
||||||
watch(route, () => {
|
watch(route, () => {
|
||||||
name.value = route.params.name.toString()
|
name.value = route.params?.name?.toString() ?? ''
|
||||||
})
|
})
|
||||||
|
|
||||||
const update = ref(0)
|
const update = ref(0)
|
||||||
|
|
|
@ -76,7 +76,7 @@ func (s *NgxServer) parseDirective(d NgxDirective) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
regExp := regexp.MustCompile("(\\S+?)\\s+?{?(.+?)[;|}]")
|
regExp := regexp.MustCompile("(\\S+?)\\s+?{?(.+)[;|}]")
|
||||||
matchSlice := regExp.FindAllStringSubmatch(str, -1)
|
matchSlice := regExp.FindAllStringSubmatch(str, -1)
|
||||||
|
|
||||||
for k, v := range matchSlice {
|
for k, v := range matchSlice {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue