rector/src/Util/StringUtils.php

15 lines
294 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Util;
use RectorPrefix202405\Nette\Utils\Strings;
final class StringUtils
{
public static function isMatch(string $value, string $regex) : bool
{
$match = Strings::match($value, $regex);
return $match !== null;
}
}