Skip to content

Commit

Permalink
fix oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Dec 19, 2020
1 parent 7166c36 commit 6b615e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygments/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def doctype_matches(text, regex):
m = doctype_lookup_re.search(text)
if m is None:
return False
doctype = m.group(2)
doctype = m.group(1)
return re.compile(regex, re.I).match(doctype.strip()) is not None


Expand Down

0 comments on commit 6b615e6

Please sign in to comment.