You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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/base64-regex@2.0.0/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.The text was updated successfully, but these errors were encountered: