Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Base64 decode error points at the wrong character when the input has spaces or line breaks

Abierto
#310 2 comentarios 0 reacciones 1 asignado Ver en GitHub

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

bug good first issue hacktoberfest

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 test and npm run build pass

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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de codercops/toolbelt

Todos los issues de codercops/toolbelt

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.