Eliding length for ":"-ranges is no longer allowed.

This commit is contained in:
Christoffer Lerno
2023-08-18 22:25:51 +02:00
parent 17f69d8da8
commit d5aebb434c
6 changed files with 39 additions and 10 deletions

View File

@@ -220,7 +220,7 @@ fn usz! Base64Decoder.decode(&self, char[] src, char[] dst)
if (trailing == 0) return dn;
src = src[^trailing:];
src = src[^trailing..];
char c0 = self.reverse[src[0]];
char c1 = self.reverse[src[1]];
if (c0 == self.invalid || c1 == self.invalid) return Base64Error.INVALID_PADDING?;