Skip to content
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

Issue with Compressing Regex #24

Open
ChrGriffin opened this issue Nov 19, 2016 · 1 comment
Open

Issue with Compressing Regex #24

ChrGriffin opened this issue Nov 19, 2016 · 1 comment

Comments

@ChrGriffin
Copy link

ChrGriffin commented Nov 19, 2016

{return/^(?:(?:https?|file)\:)?\/\//.test(e)}

becomes:

{return/^(?:(?:https?|file)\:)?\/\}

When it's compressed. As you can see, not just the end of the regex, but the following function call, are removed. Based on the fact that the regex ends with '//', I assumed it might be something to do with automatically removing comments. But I added:

'jsFileCompressFlaggedComments' => FALSE

To my config, and the error persisted. So I'm not sure what might be causing the problem.

@cshehadi
Copy link

I have the same issue. I had to turn off js file compression. Any hope for a fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants