Browse Source

fix(edit-monitor): fix regex to allow a single header

pull/529/head
Bert Verhelst 3 years ago
parent
commit
c3c273f9df
  1. 2
      src/pages/EditMonitor.vue

2
src/pages/EditMonitor.vue

@ -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…
Cancel
Save