mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 02:30:06 +02:00
ef975629f3
Because of `declare(strict_types=1)` some changes were necessary.
23 lines
504 B
PHP
23 lines
504 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Respect/Validation.
|
|
*
|
|
* (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
|
|
*
|
|
* For the full copyright and license information, please view the "LICENSE.md"
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Respect\Validation\Rules;
|
|
|
|
class Uuid extends AbstractRegexRule
|
|
{
|
|
protected function getPregFormat()
|
|
{
|
|
return '/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i';
|
|
}
|
|
}
|