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

Incorrect preprocessor directive name detection during minification #3

Closed
atifaziz opened this issue May 21, 2019 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@atifaziz
Copy link
Owner

Install version 1.0.2:

Then in PowerShell, try:

PS> "
>> #line 1
>> # line 1
>> #region!
>> #endregion!
>> " | csmin

The output will be:

#line 1
#region!
#endregion!

Expected line directives to be maintained in the output and regions to be minified. Instead, # line 1 (with space between # and line) disappears whereas region and endregion directives with exclamation don't get minified.

@atifaziz atifaziz added the bug Something isn't working label May 21, 2019
@atifaziz atifaziz self-assigned this May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant