yatex
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 diff
1.1 --- a/yahtml.el Wed Nov 11 10:11:09 2015 +0859 1.2 +++ b/yahtml.el Tue Jan 05 10:18:21 2016 +0859 1.3 @@ -1,6 +1,6 @@ 1.4 ;;; yahtml.el --- Yet Another HTML mode -*- coding: sjis -*- 1.5 ;;; (c) 1994-2015 by HIROSE Yuuji [yuuji(@)yatex.org] 1.6 -;;; Last modified Wed Oct 7 09:45:01 2015 on firestorm 1.7 +;;; Last modified Tue Jan 5 10:17:40 2016 on firestorm 1.8 ;;; $Id$ 1.9 1.10 (defconst yahtml-revision-number "1.78.1" 1.11 @@ -564,7 +564,7 @@ 1.12 (defun yahtml-dir-default-charset () 1.13 (let*((fn (file-name-nondirectory (or buffer-file-name ""))) 1.14 (ext (substring fn (or (string-match "\\.[a-z0-9]+$" fn) 0))) 1.15 - (ptn (format "^\\s *AddType.*charset=\\(.*\\)\\%s$" ext)) 1.16 + (ptn (format "^\\s *AddType.*charset=\\(.*\\)\\%s\\>" ext)) 1.17 (case-fold-search t) 1.18 line 1.19 charset)