You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In JavaScript / TypeScript, this package will strip not just the block comment but the entire remainder of the string when a block comment of the form /**/ is encountered. For example, the string hello/**/ world will become hello instead of hello world.
This bug only affects block comments of the form /**/. E.g. /***/ and /******/ are unaffected.
The text was updated successfully, but these errors were encountered:
This might not be related, but here's a short reproducible example:
conststrip=require("strip-comments");constdata=` /************************** * Example of some comments *************************** */export function test() { console.log("This function should remain");}`;console.log(strip(data));
Expected Output:
exportfunctiontest(){console.log("This function should remain");}
In JavaScript / TypeScript, this package will strip not just the block comment but the entire remainder of the string when a block comment of the form
/**/
is encountered. For example, the stringhello/**/ world
will becomehello
instead ofhello world
.This bug only affects block comments of the form
/**/
. E.g./***/
and/******/
are unaffected.The text was updated successfully, but these errors were encountered: