sebastienros / fluid

Fluid is an open-source .NET template engine based on the Liquid template language.
MIT License
1.41k stars 176 forks source link

Trim = from Base64UrlSafeEncode #691

Closed hishamco closed 1 month ago

hishamco commented 1 month ago

Fixes #690

sebastienros commented 1 month ago

Feel free to merge when you add the test, thanks.

hishamco commented 1 month ago

Sure, I will add a test then merge

sebastienros commented 1 month ago

Added the same tests to ensure the decoding was fine too and it happens it was not as the = chars are required by the API.

Took the time to implement @lahma 's suggestion to skip the string allocation.