Skip to content

Improve TypeScript and JavaScript template/regex filtering #67

Description

@Vladyslav-Kuksiuk

Do not strip comment-like text from the template string (``), and regex.

Examples to cover:

const pattern = /https?:\/\/example\.com\/docs/;
const help = `Keep // and /* markers */ in template text`;
const nested = `${format(value /* remove this real comment */)}`;

The filter should strip only real comments.
It should not truncate URLs, regex literals, or template literal content.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions