lorem for japanese

This commit is contained in:
mattn
2013-06-06 18:24:15 +09:00
parent 8e515a11c2
commit 6619d5078e
2 changed files with 27 additions and 1 deletions

View File

@@ -147,7 +147,6 @@ endfunction
function! zencoding#util#getContentFromURL(url)
let res = system(printf("%s %s", g:zencoding_curl_command, shellescape(substitute(a:url, '#.*', '', ''))))
let charset = matchstr(res, '<meta[^>]\+content=["''][^;"'']\+;\s*charset=\zs[^;"'']\+\ze["''][^>]*>')
let g:hoge = charset
if len(charset) == 0
let charset = matchstr(res, '<meta\s\+charset=["'']\?\zs[^"'']\+\ze["'']\?[^>]*>')
endif