mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-28 01:04:05 +00:00
fix(edit-monitor): fix regex to allow a single header
This commit is contained in:
parent
daab2a05f5
commit
c3c273f9df
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.monitor.headers) {
|
if (this.monitor.headers) {
|
||||||
if (!/^([^:]+:.*)([\s]+[^:]+:.*)+$/g.test(this.monitor.headers)) {
|
if (!/^([^:]+:.*)([\s]+[^:]+:.*)*$/g.test(this.monitor.headers)) {
|
||||||
toast.error(this.$t("HeadersInvalidFormat"));
|
toast.error(this.$t("HeadersInvalidFormat"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue