From 5be5acfe5170b5156d1c56c4e0037bd3dbf05be0 Mon Sep 17 00:00:00 2001 From: Colby Wolfe <89857623+cwolfe3@users.noreply.github.com> Date: Thu, 9 Mar 2023 16:38:28 -0500 Subject: [PATCH] Allow %Y to appear multiple times in a journal entry name --- autoload/wiki/date.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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