You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FEAT: improving DEBASE so it can decode URL safe Base64 variant input even without using a /url refinement
relates to: metaeducation/rebol-issues#2318
Previously this would throw an error:
```
>> debase "qL8R4QIcQ_ZsRqOAbeRfcZhilN_MksRtDaErMA=="
** Script error: data not in correct format: "qL8R4QIcQ_ZsRqOAbeRfcZhilN_MksRtDaErMA=="
```
The reason is that the input is using URL safe alphabet. With this commit when such a situation is detected, the decoder restarts itself automatically as if it would be used with /url refinement.
NOTE: if you are sure that input should be in URL safe format, use the refinement to avoid unnecessary computations.
Possible test:
```
key: "qL8R4QIcQ_ZsRqOAbeRfcZhilN_MksRtDaErMA=="
equal? (debase key) (debase/url key) ;== should be TRUE
```
0 commit comments