Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Add ECMAScript comment to JSMin.cs/NextCharExcludingComments()#177

Open
newtonguass wants to merge 1 commit intoShazwazza:masterfrom
newtonguass:master
Open

Add ECMAScript comment to JSMin.cs/NextCharExcludingComments()#177
newtonguass wants to merge 1 commit intoShazwazza:masterfrom
newtonguass:master

Conversation

@newtonguass
Copy link
Copy Markdown

@newtonguass newtonguass commented Mar 3, 2020

ECMAScript states that <!--SingleLineCommentChars--> is also the comment style.
Please refer to https://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf page 773.
I just add this pattern to JSMin.cs/NextCharExcludingComments() to avoid exception.

@Shazwazza
Copy link
Copy Markdown
Owner

Wow! I'm super impressed that you took the time to modify Jsmin, it's not a nice or easy task to do :)

The source of JsMin is actually here https://github.com/Shazwazza/JsMinSharp which has unit tests. Any chance you would be able to send a PR to there with a unit test? Then we can get this re-merged back into both CDF and Smidge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants