base64-regex icon indicating copy to clipboard operation
base64-regex copied to clipboard

Published version on npm is not same as in repo

Open LinusU opened this issue 5 years ago • 0 comments

index.js in the repository has an extra ? in the exact string interpolation, causing them to validate different things.

Published version: https://cdn.jsdelivr.net/npm/[email protected]/index.js In repository: https://github.com/kevva/base64-regex/blob/0f0065cb1a1c75dc13c603c424f19103a2294782/index.js

I believe neither of the versions to be correct though, since the ? should be present in the regex for both exact and non-exact in order to match all base64 strings. Without it, it only matches 2/3 of all possible base64 strings.

LinusU avatar Oct 06 '20 08:10 LinusU