kevva / kevva/base64-regex

The regex can't match some base64 string

Open
#4 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
19
Forks
8
PR merge metrics
No merged PRs in 30d

Description

`438026444` convert to base64 string is `NDM4MDI2NDQ0`, the regex can't match this.

[This function](https://github.com/chriso/validator.js/blob/master/src/lib/isBase64.js) works well.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the package's regular expression and compare its behavior with the linked validator.js isBase64.js function. Reproduce the reported `438026444` to `NDM4MDI2NDQ0` case, then verify that the regex matches it without breaking existing base64 cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.