MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / isMatch

Method isMatch

gui/fitBrowserLite.py:104–112  ·  view source on GitHub ↗
(fit, searchTokens)

Source from the content-addressed store, hash-verified

102 else:
103
104 def isMatch(fit, searchTokens):
105 for token in searchTokens:
106 if (
107 token not in fit.name.lower() and
108 token not in fit.shipName.lower() and
109 token not in fit.shipNameShort.lower()
110 ):
111 return False
112 return True
113
114 matches = []
115 searchTokens = [t.lower() for t in re.split(r'\s+', searchPattern)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected