Automattic\WooCommerce\Vendor\Sabberworm\CSS\CSSList
CSSList::identifierIs
Tests an identifier for a given value. Since identifiers are all keywords, they can be vendor-prefixed. We need to check for these versions too.
Method of the class: CSSList{}
No Hooks.
Returns
true|false.
Usage
$result = CSSList::identifierIs( $sIdentifier, $sMatch );
- $sIdentifier(string) (required)
- .
- $sMatch(string) (required)
- .
CSSList::identifierIs() CSSList::identifierIs code WC 10.4.3
private static function identifierIs($sIdentifier, $sMatch)
{
return (strcasecmp($sIdentifier, $sMatch) === 0)
?: preg_match("/^(-\\w+-)?$sMatch$/i", $sIdentifier) === 1;
}