src/eric7/WebBrowser/AdBlock/AdBlockRule.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
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): # noqa: Y111 1009 for index, filterChar in enumerate(filterString): # noqa: Y-111
1010 if filterChar in ["^", "*"]: 1010 if filterChar in ["^", "*"]:
1011 return False 1011 return False
1012 elif filterChar == "|": 1012 elif filterChar == "|":
1013 return index == len(filterString) - 1 1013 return index == len(filterString) - 1
1014 1014

eric ide

mercurial