Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Simplify code by using =~# instead of match

  • Loading branch information...
commit 7fd95540e668a6d95accd5d0b89fa3148aafcd14 1 parent 034201a
@feuerbach authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 autoload/hsModule.vim
View
4 autoload/hsModule.vim
@@ -9,9 +9,7 @@ endfunction
function! s:CapitalizedSuffix(ps)
let result=[]
for p in reverse(a:ps)
- " \C is needed to make the pattern case-sensitive
- " match returns -1 on failure
- if match(p, '^[[:upper:]]\C') >= 0
+ if p =~# '^[[:upper:]]'
let result=[p]+result
else
break
Please sign in to comment.
Something went wrong with that request. Please try again.