mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-11 21:03:53 -05:00
Fix regex to eliminate false positives in match.
This commit is contained in:
@@ -16,7 +16,7 @@ function! gitgutter#utility#is_active()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! gitgutter#utility#not_git_dir()
|
function! gitgutter#utility#not_git_dir()
|
||||||
return gitgutter#utility#full_path_to_directory_of_file() !~ '\.git\([/\\].*\)\?$'
|
return gitgutter#utility#full_path_to_directory_of_file() !~ '[/\\]\.git\($\|[/\\]\)'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" A replacement for the built-in `shellescape(arg)`.
|
" A replacement for the built-in `shellescape(arg)`.
|
||||||
|
|||||||
Reference in New Issue
Block a user