AspireCloud/app/Utils/Patterns.php
Cristi Rusu 7e24c33e9e fix: PR requested fixes
- Cleanup migrations, change json fields, remove updated_at
- Use a separate fair.php config file
- Store the semantic version regex in app/Utils/Patterns.php
- Minor improvements
2025-09-10 11:00:37 +03:00

13 lines
284 B
PHP

<?php
namespace App\Utils;
class Patterns
{
public const SEMANTIC_VERSION = '/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)(\.(0|[1-9]\d*))?(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$/';
private function __construct()
{
// not instantiable
}
}