Files
KanbanGit/app/Actions/Git/TicketKeyReferenceMatcher.php
T
Koda 5af4c6a9df
linter / quality (pull_request) Successful in 1m38s
tests / ci (8.4) (pull_request) Successful in 1m35s
Fix main test expectations and ticket key matching
2026-06-01 11:06:51 +00:00

15 lines
294 B
PHP

<?php
namespace App\Actions\Git;
class TicketKeyReferenceMatcher
{
public function matches(string $ticketKey, string $referenceName): bool
{
return preg_match(
'/^'.preg_quote($ticketKey, '/').'(?=$|[-_\/])/i',
$referenceName,
) === 1;
}
}