yii\validators\FileValidator::buildMimeTypeRegexp PHP Method

buildMimeTypeRegexp() private method

Builds the RegExp from the $mask
See also: mimeTypes
private buildMimeTypeRegexp ( string $mask ) : string
$mask string
return string the regular expression
    private function buildMimeTypeRegexp($mask)
    {
        return '/^' . str_replace('\\*', '.*', preg_quote($mask, '/')) . '$/';
    }