mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 12:15:00 +08:00
fix(edit-monitor): fix regex to allow a single header
This commit is contained in:
@@ -442,7 +442,7 @@ export default {
|
||||
}
|
||||
}
|
||||
if (this.monitor.headers) {
|
||||
if (!/^([^:]+:.*)([\s]+[^:]+:.*)+$/g.test(this.monitor.headers)) {
|
||||
if (!/^([^:]+:.*)([\s]+[^:]+:.*)*$/g.test(this.monitor.headers)) {
|
||||
toast.error(this.$t("HeadersInvalidFormat"));
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user