mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 03:04:27 +08:00
Remove all quotes. related issue #155
This commit is contained in:
@@ -165,7 +165,8 @@ function! emmet#lang#css#imageSize()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let content = emmet#util#getContent(img_region)
|
let content = emmet#util#getContent(img_region)
|
||||||
let fn = matchstr(content, '\<url([''"]\zs[^''"]\+\ze[''"]')
|
let fn = matchstr(content, '\<url(\zs[^)]\+\ze)')
|
||||||
|
let fn = substitute(fn, '[''" \t]', '', 'g')
|
||||||
if fn =~ '^\s*$'
|
if fn =~ '^\s*$'
|
||||||
return
|
return
|
||||||
elseif fn !~ '^\(/\|http\)'
|
elseif fn !~ '^\(/\|http\)'
|
||||||
|
|||||||
Reference in New Issue
Block a user