Automattic\WooCommerce\Vendor\Sabberworm\CSS\Property

Selector::isValidpublic staticWC 1.0

Method of the class: Selector{}

No Hooks.

Returns

true|false.

Usage

$result = Selector::isValid( $sSelector );
$sSelector(string) (required)
.

Selector::isValid() code WC 10.8.1

public static function isValid($sSelector)
{
    return preg_match(static::SELECTOR_VALIDATION_RX, $sSelector);
}