forked from luna/vim-rana-local
fix bug in should_ignore function
This commit is contained in:
parent
a97984f4b9
commit
8244e3eb81
1 changed files with 2 additions and 0 deletions
|
@ -140,6 +140,8 @@ def parseArguments(argv):
|
||||||
|
|
||||||
|
|
||||||
def should_ignore(fileName, patterns):
|
def should_ignore(fileName, patterns):
|
||||||
|
if not patterns:
|
||||||
|
patterns = []
|
||||||
for pattern in patterns:
|
for pattern in patterns:
|
||||||
try:
|
try:
|
||||||
compiled = re.compile(pattern, re.IGNORECASE)
|
compiled = re.compile(pattern, re.IGNORECASE)
|
||||||
|
|
Loading…
Reference in a new issue