We've tried many solutions about how to remove JS comment by regular expression, but there's one case which always breaks my JS:
const a = "/*";
const b = "*/";
We commonly use Accept: "application/json, text/plain, */*"
on our script so it always break our JS.
I'm looking for a regex that can ignore the searching within
"", '', ``
string in JS or any other solution.
Thanks.