Closed efreibe closed 7 months ago
this is the code. I will test later. https://github.com/AnWeber/httpyac/blob/main/src/plugins/core/replacer/escapeVariableReplacer.ts
The regex was incorrect. But as I see it, that was really the only case that would not have worked. Congratulations
It was a miracle that I needed to escape this specific string. I was actually testing whatsapp templates with variables and came across this. Thank you.
El vie, 8 de dic de 2023, 17:21, Andreas Weber @.***> escribió:
The regex was incorrect. But as I see it, that was really the only case that would not have worked. Congratulations
— Reply to this email directly, view it on GitHub https://github.com/AnWeber/vscode-httpyac/issues/244#issuecomment-1847795747, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIDCBSC6O3377SZW5CIJ2LYINZGLAVCNFSM6AAAAABAMZ3VS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBXG44TKNZUG4 . You are receiving this because you authored the thread.Message ID: @.***>
If I make a request using this json code as body:
I can see in the log that it was sent as:
It always have to do with {{2}}, no other number causes this to fail. The order you send the {{2}} is not important, it always fails in decoding this specific escape sequence.