diff --git a/autoload/wiki/date.vim b/autoload/wiki/date.vim index f13684a..ba6e777 100644 --- a/autoload/wiki/date.vim +++ b/autoload/wiki/date.vim @@ -96,7 +96,7 @@ endfunction function! wiki#date#format_to_regex(format) abort " {{{1 let l:regex = substitute(a:format, '\C%[ymdVU]', '\\d\\d', 'g') - return substitute(l:regex, '\C%Y', '\\d\\d\\d\\d', '') + return substitute(l:regex, '\C%Y', '\\d\\d\\d\\d', 'g') endfunction " }}}1