def __init__(self, fieldname, text, boost=1.0):
        
        self.fieldname = fieldname
        self.text = text
        self.boost = boost
        
        self.expression = re.compile(fnmatch.translate(text))
        
        # Get the "prefix" -- the substring before the first wildcard.
        qm = text.find("?")
        st = text.find("*")
        if qm < 0 and st < 0:
            self.prefix = ""
        elif qm < 0:
            self.prefix = text[:st]
        elif st < 0:
            self.prefix = text[:qm]
        else:
            self.prefix = text[:min(st, qm)]
Push failing status for head commit to Github status API.
dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py/Wildcard.__init__--crossover with--dataset/ETHPy150Open openaddresses/machine/openaddr/ci/__init__.py/update_failing_status