summaryrefslogtreecommitdiff
path: root/modules/system-lib.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 13:42:11 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 13:42:11 -0500
commitf90ef0c42c8b59b9924e690c77231790346859a2 (patch)
tree76d45c7973ec1f130ae241f2d659544b9410c418 /modules/system-lib.el
parentded114e36eef635ca8b65c77579a80f4e491edf6 (diff)
downloaddotemacs-f90ef0c42c8b59b9924e690c77231790346859a2.tar.gz
dotemacs-f90ef0c42c8b59b9924e690c77231790346859a2.zip
refactor(dirvish): extract cj/--html-file-p; match HTML case-insensitively
`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).
Diffstat (limited to 'modules/system-lib.el')
0 files changed, 0 insertions, 0 deletions