Normalize the per-request billing nonce so it isn't seen as a content change.
(text: string)
| 95 | |
| 96 | /** Normalize the per-request billing nonce so it isn't seen as a content change. */ |
| 97 | function normalizeSystemText(text: string): string { |
| 98 | return text.replace(/cch=[^;]*;/g, "cch=<NONCE>;"); |
| 99 | } |
| 100 | |
| 101 | function blockText(block: unknown): string { |
| 102 | if (block && typeof block === "object" && typeof (block as Json).text === "string") { |