strip-comments icon indicating copy to clipboard operation
strip-comments copied to clipboard

Infinity loop in jsx file

Open cevek opened this issue 3 years ago • 1 comments

Simple repro

<span>{a ?? ''}</span>;

/^(\d\d)$/;
/^(\d\d)$/;
/^(\d\d)$/;
/^(\d\d)$/;
/^(\d\d)$/;
/^(\d\d)$/;
/^(\d\d)$/;
/^(\d\d)$/;
/^(\d\d)$/;
/^(\d\d)$/;
/^(\d\d)$/;
/^(\d\d)$/;
/^(\d\d)$/;
/^(\d\d)$/;

cevek avatar Nov 11 '20 15:11 cevek

thanks for the heads up, and sorry for the late reply!!! I'll look into this ASAP.

FWIW, technically .jsx is not officially supported yet, but it's reasonable and probably common for ppl to want to use this with react, so I'm marking this as a bug.

jonschlinkert avatar Dec 07 '20 15:12 jonschlinkert