changeset 435:8a9ef7c96a0a dev

Consider multiple extensions in .htaccess/AddType Line.
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 05 Jan 2016 10:18:21 +0859
parents 22e8feb8ee15
children e78a87bc2c9e
files yahtml.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/yahtml.el	Wed Nov 11 10:11:09 2015 +0859
+++ b/yahtml.el	Tue Jan 05 10:18:21 2016 +0859
@@ -1,6 +1,6 @@
 ;;; yahtml.el --- Yet Another HTML mode -*- coding: sjis -*-
 ;;; (c) 1994-2015 by HIROSE Yuuji [yuuji(@)yatex.org]
-;;; Last modified Wed Oct  7 09:45:01 2015 on firestorm
+;;; Last modified Tue Jan  5 10:17:40 2016 on firestorm
 ;;; $Id$
 
 (defconst yahtml-revision-number "1.78.1"
@@ -564,7 +564,7 @@
 (defun yahtml-dir-default-charset ()
   (let*((fn (file-name-nondirectory (or buffer-file-name "")))
 	(ext (substring fn (or (string-match "\\.[a-z0-9]+$" fn) 0)))
-	(ptn (format "^\\s *AddType.*charset=\\(.*\\)\\%s$" ext))
+	(ptn (format "^\\s *AddType.*charset=\\(.*\\)\\%s\\>" ext))
 	(case-fold-search t)
 	line
 	charset)

yatex.org