diff --git a/postwoman.toml b/postwoman.toml index 4e857ea..265c926 100644 --- a/postwoman.toml +++ b/postwoman.toml @@ -14,6 +14,7 @@ extract = { type = "discard" } [route.notfound] url = "https://api.alemi.dev/not-found" expect = 404 +extract = { type = "regex", pattern = 'nginx/[0-9\.]+' } [route.debug] url = "https://api.alemi.dev/debug" diff --git a/src/model/endpoint.rs b/src/model/endpoint.rs index 4d2be80..a1ba1ec 100644 --- a/src/model/endpoint.rs +++ b/src/model/endpoint.rs @@ -166,6 +166,7 @@ impl Endpoint { .ok_or_else(|| PostWomanError::NoMatch(body.clone()))? .as_str() .to_string() + + "\n" }, // bare string defaults to JQL query StringOr::T(Extractor::Jql { query }) | StringOr::Str(query) => {