diff --git a/dataobjs.py b/dataobjs.py index 1c5093f4..a22ca813 100644 --- a/dataobjs.py +++ b/dataobjs.py @@ -167,7 +167,11 @@ def apply(self, lexed, first=False, last=False): if len(excludes) >= 1: # SORT !!! 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. sendparts = list() # Add string until start of exclude at index 0.