<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-dirvish-config-html-file-p.el, branch load-graph-classify-end</title>
<subtitle>My Emacs configuration
</subtitle>
<id>https://git.cjennings.net/dotemacs/atom?h=load-graph-classify-end</id>
<link rel='self' href='https://git.cjennings.net/dotemacs/atom?h=load-graph-classify-end'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/'/>
<updated>2026-05-10T18:42:11+00:00</updated>
<entry>
<title>refactor(dirvish): extract cj/--html-file-p; match HTML case-insensitively</title>
<updated>2026-05-10T18:42:11+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-10T18:42:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=cffdf3b92a97b1af3aedec624a9fb43db1c60ef8'/>
<id>urn:sha1:cffdf3b92a97b1af3aedec624a9fb43db1c60ef8</id>
<content type='text'>
`cj/dirvish-open-html-in-eww' inlined a `string-match-p' against `\.html?\=' to decide whether to hand a file to eww.  The check was case-sensitive, so `.HTML' fell through to the "Not an HTML file" message even though every browser treats it as HTML.  Lift the predicate into `cj/--html-file-p' and bind `case-fold-search' to t so uppercase and mixed-case extensions match.  The trailing-`\=' anchor stays so files like `html-thing.org' still don't match.

Seven Normal/Boundary/Error tests cover lowercase `.html', `.htm', uppercase `.HTML', mixed-case `.Html', embedded `html' (no match), non-html extensions (no match), and no-extension files (no match).
</content>
</entry>
</feed>
