mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 17:45:53 +01:00
normalize escaped runner e2e markers
This commit is contained in:
1 parent
b5635f8260
commit
4da84bb48a
2 files changed
+5
-1
No files matched your search
@@ -40,6 +40,10 @@ export interface MatcherResult {
|
||||
function normalizeMessage(value: string | undefined) {
|
||||
return (value ?? "")
|
||||
.replace(/\r\n/g, "\n")
|
||||
// Some provider renderers escape underscores in plain-text identifiers
|
||||
// before persisting Markdown. Treat that presentation-only escape as the
|
||||
// same visible marker for exact/contains/ordered message assertions.
|
||||
.replace(/\\_/g, "_")
|
||||
.replace(/[ \t]+/g, " ")
|
||||
.trim();
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ describe("runner E2E matchers", () => {
|
||||
{ kind: "runtime_mode", expected: "native" },
|
||||
],
|
||||
{
|
||||
message: " complete PAPERCLIP_E2E_OK_nonce ",
|
||||
message: " complete PAPERCLIP\\_E2E\\_OK\\_nonce ",
|
||||
issueStatus: "done",
|
||||
runtimeMode: "native",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user