vitaly-t / decomment

:hammer: Removes comments from JSON, JavaScript, CSS, HTML, etc.
75 stars 21 forks source link

Fix a bug copied from SO #18

Closed cshaa closed 6 years ago

cshaa commented 6 years ago

The regex used for ignoring jsDoc blocks was copied from a StackOverflow answer. Now we found that it contained a bug preventing it from working correctly on certain (uncommon) types of comments. This is a corrected version that should work properly.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling f4437275b55b63bf117a110541bccb29720b5166 on m93a:patch-1 into dc360acc7356f1ca2a63797423221816b8665c84 on vitaly-t:master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling f4437275b55b63bf117a110541bccb29720b5166 on m93a:patch-1 into dc360acc7356f1ca2a63797423221816b8665c84 on vitaly-t:master.

vitaly-t commented 6 years ago

Thank you for the PR!