Flarum\Core\Search\AbstractRegexGambit::match PHP 메소드

match() 보호된 메소드

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