Flarum\Core\Search\AbstractRegexGambit::match PHP Méthode

match() protected méthode

Match the bit against this gambit.
protected match ( string $bit ) : array
$bit string
Résultat array
    protected function match($bit)
    {
        if (preg_match('/^(-?)' . $this->pattern . '$/i', $bit, $matches)) {
            return $matches;
        }
    }
AbstractRegexGambit