diff --git a/src/htmlparser.js b/src/htmlparser.js
index f31c2bb8..9105781c 100644
--- a/src/htmlparser.js
+++ b/src/htmlparser.js
@@ -136,7 +136,7 @@ export class HTMLParser {
let textEnd = html.indexOf('<');
if (textEnd === 0) {
// Comment:
- if (/^');
if (commentEnd >= 0) {
@@ -150,7 +150,7 @@ export class HTMLParser {
}
// https://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment
- if (/^');
if (conditionalEnd >= 0) {