Skip to content

Commit

Permalink
Look for uppercase as well in y-012
Browse files Browse the repository at this point in the history
  • Loading branch information
vr8hub authored and acabal committed Mar 15, 2024
1 parent 89f96da commit 549d678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion se/se_epub_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -2913,7 +2913,7 @@ def _lint_xhtml_typo_checks(filename: Path, dom: se.easy_xml.EasyXmlTree, file_c
if typos:
messages.append(LintMessage("y-011", "Possible typo: two or more [text]’[/] in a row.", se.MESSAGE_TYPE_WARNING, filename, typos))

typos = [node.to_string() for node in dom.xpath("/html/body//p[re:test(., '”[a-z]')]")]
typos = [node.to_string() for node in dom.xpath("/html/body//p[re:test(., '”[A-Za-z]')]")]
if typos:
messages.append(LintMessage("y-012", "Possible typo: [text]”[/] directly followed by letter.", se.MESSAGE_TYPE_WARNING, filename, typos))

Expand Down

0 comments on commit 549d678

Please sign in to comment.