Automattic\WooCommerce\EmailEditorVendor\Sabberworm\CSS\Rule

Rule::listDelimiterForRule │ private static │ WC 1.0

Returns a list of delimiters (or separators). The first item is the innermost separator (or, put another way, the highest-precedence operator). The sequence continues to the outermost separator (or lowest-precedence operator).

Метод класса: Rule{}

Хуков нет.

Возвращает

list<non-empty-string>.

Использование

$result = Rule::listDelimiterForRule( $sRule );
$sRule(строка) (обязательный)
.

Код Rule::listDelimiterForRule() WC 11.3.0

private static function listDelimiterForRule($sRule)
{
    if (preg_match('/^font($|-)/', $sRule)) {
        return [',', '/', ' '];
    }

    switch ($sRule) {
        case 'src':
            return [' ', ','];
        default:
            return [',', ' ', '/'];
    }
}