From 6793caa9bfa215f42eb2116d6cf0402cf1fab139 Mon Sep 17 00:00:00 2001 From: Ash Searle Date: Wed, 4 Nov 2020 21:13:49 +0000 Subject: [PATCH] Use first in document when anchorizing URLs --- autoload/emmet.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/emmet.vim b/autoload/emmet.vim index f6378657..461f3f1f 100644 --- a/autoload/emmet.vim +++ b/autoload/emmet.vim @@ -865,7 +865,7 @@ function! emmet#anchorizeURL(flag) abort return '' endif - let mx = '.*<title[^>]*>\s*\zs\([^<]\+\)\ze\s*<\/title[^>]*>.*' + let mx = '<title[^>]*>\s*\zs\([^<]\+\)\ze\s*<\/title[^>]*>' let content = emmet#util#getContentFromURL(url) let content = substitute(content, '\r', '', 'g') let content = substitute(content, '[ \n]\+', ' ', 'g')