mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-27 20:29:39 +02:00
[pitboss/grind] deferred session-0009 (20260520T233019Z-6958)
This commit is contained in:
parent
a6f34554db
commit
38cc0ce05f
60 changed files with 509 additions and 541 deletions
|
|
@ -48,8 +48,7 @@ fn read_fixture(stub_dir: &str, name: &str) -> String {
|
|||
/// begin with `//`; the payload is the surviving line.
|
||||
fn extract_payload(s: &str) -> String {
|
||||
s.lines()
|
||||
.filter(|l| !l.trim().is_empty() && !l.trim_start().starts_with("//"))
|
||||
.last()
|
||||
.rfind(|l| !l.trim().is_empty() && !l.trim_start().starts_with("//"))
|
||||
.unwrap_or("")
|
||||
.trim()
|
||||
.to_owned()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue