diff --git a/parser/html_block.go b/parser/html_block.go
index 2f04aa5..95b6918 100644
--- a/parser/html_block.go
+++ b/parser/html_block.go
@@ -77,7 +77,7 @@ var allowedBlockTags = map[string]bool{
}
var htmlBlockType1OpenRegexp = regexp.MustCompile(`(?i)^[ ]{0,3}<(script|pre|style)(?:\s.*|>.*|/>.*|)\n?$`)
-var htmlBlockType1CloseRegexp = regexp.MustCompile(`(?i)^[ ]{0,3}(?:[^ ].*|)(?:script|pre|style)>.*`)
+var htmlBlockType1CloseRegexp = regexp.MustCompile(`(?i)^.*(?:script|pre|style)>.*`)
var htmlBlockType2OpenRegexp = regexp.MustCompile(`^[ ]{0,3}'}