Automattic\WooCommerce\Vendor\Sabberworm\CSS\Rule
Rule::listDelimiterForRule
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).
Method of the class: Rule{}
No Hooks.
Returns
list
Usage
$result = Rule::listDelimiterForRule( $sRule );
- $sRule(string) (required)
- .
Rule::listDelimiterForRule() Rule::listDelimiterForRule code WC 10.5.0
private static function listDelimiterForRule($sRule)
{
if (preg_match('/^font($|-)/', $sRule)) {
return [',', '/', ' '];
}
switch ($sRule) {
case 'src':
return [' ', ','];
default:
return [',', ' ', '/'];
}
}