aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2018-07-09 13:55:18 -0400
committerJames McCoy <jamessan@jamessan.com>2018-07-09 13:55:21 -0400
commit44a284d71cd5ee1bc09a2ea354624bc532ca0aef (patch)
tree0f40ba2b63a8e8ca72f71bd6d6737e75e8c3d7ee /scripts/vim-patch.sh
parent56af2f8c5f1411024bb8138208321dd8a1160757 (diff)
downloadrneovim-44a284d71cd5ee1bc09a2ea354624bc532ca0aef.tar.gz
rneovim-44a284d71cd5ee1bc09a2ea354624bc532ca0aef.tar.bz2
rneovim-44a284d71cd5ee1bc09a2ea354624bc532ca0aef.zip
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.
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-xscripts/vim-patch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index efe89e0534..4912b2160b 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -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