fix: regex extractor add newline and example
This commit is contained in:
parent
6fa7606226
commit
4fa22612f5
2 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue