src/eric7/WebBrowser/AdBlock/AdBlockRule.py

branch
eric7
changeset 10180
3a595df36c9a
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10179:c2125fcab4b8 10180:3a595df36c9a
1004 @param filterString filter string to be checked 1004 @param filterString filter string to be checked
1005 @type str 1005 @type str
1006 @return flag indicating a end of string match filter 1006 @return flag indicating a end of string match filter
1007 @rtype bool 1007 @rtype bool
1008 """ 1008 """
1009 for index, filterChar in enumerate(filterString): 1009 for index, filterChar in enumerate(filterString): # noqa: Y111
1010 # __IGNORE_WARNING_Y111__
1011 if filterChar in ["^", "*"]: 1010 if filterChar in ["^", "*"]:
1012 return False 1011 return False
1013 elif filterChar == "|": 1012 elif filterChar == "|":
1014 return index == len(filterString) - 1 1013 return index == len(filterString) - 1
1015 1014

eric ide

mercurial