vim-patch.sh: review_commit: Fix regex for vim version

067bb1e9f changed the commit format to include a brief description in
the summary line of the commit.
This commit is contained in:
James McCoy 2018-07-09 13:55:18 -04:00
parent 56af2f8c5f
commit 44a284d71c

View File

@ -427,7 +427,7 @@ review_commit() {
local nvim_patch
nvim_patch="$(curl -Ssf "${nvim_patch_url}")"
local vim_version
vim_version="$(head -n 4 <<< "${nvim_patch}" | sed -n 's/'"${git_patch_prefix}"'vim-patch:\([a-z0-9.]*\)$/\1/p')"
vim_version="$(head -n 4 <<< "${nvim_patch}" | sed -n 's/'"${git_patch_prefix}"'vim-patch:\([a-z0-9.]*\)\(:.*\)\{0,1\}$/\1/p')"
echo
if [[ -n "${vim_version}" ]]; then