fix: regex extractor add newline and example

This commit is contained in:
əlemi 2024-10-19 22:05:29 +02:00
parent 6fa7606226
commit 4fa22612f5
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 2 additions and 0 deletions

View file

@ -14,6 +14,7 @@ extract = { type = "discard" }
[route.notfound] [route.notfound]
url = "https://api.alemi.dev/not-found" url = "https://api.alemi.dev/not-found"
expect = 404 expect = 404
extract = { type = "regex", pattern = 'nginx/[0-9\.]+' }
[route.debug] [route.debug]
url = "https://api.alemi.dev/debug" url = "https://api.alemi.dev/debug"

View file

@ -166,6 +166,7 @@ impl Endpoint {
.ok_or_else(|| PostWomanError::NoMatch(body.clone()))? .ok_or_else(|| PostWomanError::NoMatch(body.clone()))?
.as_str() .as_str()
.to_string() .to_string()
+ "\n"
}, },
// bare string defaults to JQL query // bare string defaults to JQL query
StringOr::T(Extractor::Jql { query }) | StringOr::Str(query) => { StringOr::T(Extractor::Jql { query }) | StringOr::Str(query) => {