diff --git a/js/editor.js b/js/editor.js index 9262cdc..8218d0a 100644 --- a/js/editor.js +++ b/js/editor.js @@ -270,7 +270,8 @@ require(['vs/editor/editor.main'], () => { if (allCommented) { for (let i = startLine; i <= endLine; i++) { const line = model.getLineContent(i); - const stripped = line.replace(/^(\s*)(\s*)$/, '$1'); + // --!?> matches both --> and --!>; the latter is rare but legal per the HTML spec. + const stripped = line.replace(/^(\s*)