]> Lady’s Gitweb - Pisces/commit
Make base32 handling less forgiving 0.3.1
authorLady <redacted>
Mon, 22 May 2023 02:50:19 +0000 (19:50 -0700)
committerLady <redacted>
Mon, 22 May 2023 02:50:19 +0000 (19:50 -0700)
commit6824f52e3d692f16442008ebd933a5c1890f2c8c
tree09f72a452f43d4b806fd168897582a34c7baee49
parentf0c3b510a532ded70c1a72ad753204b21d0f53bb
Make base32 handling less forgiving

Ordinarily, one only encounters base32 strings of length 0, 2, 4, 5, or
7 characters (mod 8). If it is of length 3 or 6, the final character is
in the middle of an incomplete byte. As with length 1, this should
probably throw an error, as the other alternative is to entirely ignore
the character.

(It already did throw an error before this change, but
unintentionally.)
binary.js
binary.test.js
This page took 0.028518 seconds and 5 git commands to generate.