-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RegExp.$1 not get the right value #829
Comments
I did some test and there is what i get:
Looks like |
I'll try to remove padding characters from the |
Removed RegExp that trims padding characters from `base64` encoded strings from `atob` code helper to prevent mutation of `RegExp.$1` value during calls to the `stringArray`. Fixed #829
Released as |
When I tried to use RegExp by calling
.test()
, I got different results when the code was obfuscatied.Here is the sample code to reproduce the issue: gist
Expected Behavior
The code above should log the host(
127.0.0.1:54637
) of the url to the consoleCurrent Behavior
By running multiple times of
![image](https://user-images.githubusercontent.com/16091562/100983176-edb54580-3583-11eb-9178-47921fd565c4.png)
npm run test
, I got different results.Steps to Reproduce
npm install
npm run test
Your Environment
Stack trace
no error throw in this case.
Minimal working example that will help to reproduce issue
gist
The text was updated successfully, but these errors were encountered: