Add support for decoding base64 strings without padding (#1604)

This commit is contained in:
TJ Miller
2023-03-18 14:30:35 +11:00
committed by GitHub
parent 99b2ab610a
commit 69d3e3f3f8
2 changed files with 32 additions and 1 deletions
@@ -310,6 +310,14 @@ var encoderDecoderOperatorScenarios = []expressionScenario{
"D0, P[], (!!str)::\n",
},
},
{
description: "base64 missing padding test",
skipDoc: true,
expression: `"Y2F0cw" | @base64d`,
expected: []string{
"D0, P[], (!!str)::cats\n",
},
},
{
requiresFormat: "xml",
description: "empty xml decode",