Skip to content

Commit

Permalink
chore(evasive-transform): yet even more homoglyphs
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Oct 23, 2023
1 parent f03d87a commit 76666ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/evasive-transform/src/transform-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function transformComment(node, unmapLoc) {
// ...strip extraneous comment whitespace
.replace(/^\s+/gm, ' ')
// ...replace HTML comments with a defanged version to pass SES restrictions.
.replace(HTML_COMMENT_START_RE, '<!X-')
.replace(HTML_COMMENT_START_RE, '<!\u{2010}-')
.replace(HTML_COMMENT_END_RE, '-\u{2010}>')
// ...replace import expressions with a defanged version to pass SES restrictions
// (featuring homoglyphs for @kriskowal)
Expand Down

0 comments on commit 76666ca

Please sign in to comment.