recursion check
This commit is contained in:
parent
7c7d406d4f
commit
0eeebe349d
1 changed files with 5 additions and 1 deletions
|
@ -167,7 +167,11 @@ class pesterQuirks(object):
|
||||||
if len(excludes) >= 1:
|
if len(excludes) >= 1:
|
||||||
# SORT !!!
|
# SORT !!!
|
||||||
excludes.sort(key=lambda exclude: exclude.start())
|
excludes.sort(key=lambda exclude: exclude.start())
|
||||||
|
# Recursion check.
|
||||||
|
# Strings like http://:3: require this.
|
||||||
|
for n in range(0, len(excludes)-1):
|
||||||
|
if excludes[n].end() > excludes[n+1].start():
|
||||||
|
excludes.pop(n)
|
||||||
# Seperate parts to be quirked.
|
# Seperate parts to be quirked.
|
||||||
sendparts = list()
|
sendparts = list()
|
||||||
# Add string until start of exclude at index 0.
|
# Add string until start of exclude at index 0.
|
||||||
|
|
Loading…
Reference in a new issue