Base64 decode error points at the wrong character when the input has spaces or line breaks
Los mantenedores suelen responder en 1 día
@Aaqibhafeezkhan ya está trabajando en esto.
Desde el 23/10/2026.
- #332 de @Aaqibhafeezkhan — abierto
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Decode SGVs bG8! in the Base64 tool. The error says the illegal character "!" is at position 7, but in what you typed it's the 9th character. base64ToBytes (lib/base64-utils.ts, line 38) strips all whitespace first (line 41) and reports the index in the stripped string, counted from 0 (lines 48 to 53). With pasted multi-line Base64 the number is even further off.
What to do
- Report where the character is in the original input, counted from 1. For input with line breaks, line and column is even clearer.
Where to look
lib/base64-utils.ts:base64ToBytes(lines 38 to 60)lib/__tests__/base64-utils.test.ts
Acceptance criteria
-
SGVs bG8!reports position 9 - An illegal character on the second line of multi-line input is reported where it really is
- Tests that fail on the current code
-
npm run lint,npm run testandnpm run buildpass
Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off develop, and open your PR against develop with Closes #310 in the description.
- Lenguaje dominante
- TypeScript
- Estrellas
- 1
- Forks
- 9
- Merge medio
- 7 h 30 min
- PR fusionados (30 d)
- 151
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de codercops/toolbelt
-
fix(UI): shortcut popover overflowsPosiblemente ocupada @DeepakNegi13 la tomó hace 1 día. Abiertobug good first issue hacktoberfest
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
codercops/toolbelt#333 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Timestamp converter turns "February 30, 2024" into March 1 instead of rejecting itPosiblemente ocupada @bhushan4work la tomó hace 1 día. Abiertobug hacktoberfest help wanted
codercops/toolbelt#337 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Copy buttons in the URL encoder and JWT decoder are all named just "Copy"Posiblemente ocupada @bhushan4work la tomó hace 1 día. Abiertoaccessibility bug good first issue hacktoberfest
codercops/toolbelt#335 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Cron explainer says "on weekdays" for `0 0 1-31 * 1-5`, but the next runs include weekendsPosiblemente ocupada @Saifjafri212213 la tomó hace 2 días. Abiertobug hacktoberfest help wanted
codercops/toolbelt#329 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
UUID generator's v7 batch comes out in random order instead of time orderPosiblemente ocupada @omisha123 la tomó hace 2 días. Abiertobug good first issue hacktoberfest
codercops/toolbelt#316 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de codercops/toolbelt
Issues similares
-
[good first issue, hacktoberfest] 🏯 Hacktoberfest Task - Add new Japan Fact 898 (good-first-issue)Abiertocommunity first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
lingdojo/kana-dojo#33145 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
code-yeongyu/senpi#4278 ·
Los mantenedores suelen responder en 1 día
-
[Bug] Activity | The activity list ignores taskIds and returns the activities of every taskPosiblemente ocupada @NdekoCode la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ever-co/ever-gauzy#11469 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
griffinwork40/agent-afk#4408 ·
Los mantenedores suelen responder en 1 día