Permalink
Browse files

Simplify code by using =~# instead of match

  • Loading branch information...
1 parent 034201a commit 7fd95540e668a6d95accd5d0b89fa3148aafcd14 @feuerbach committed Nov 7, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 autoload/hsModule.vim
View
@@ -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

0 comments on commit 7fd9554

Please sign in to comment.