Skip to content

Commit

Permalink
Make patterns greedy
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliot-Tm committed Jun 18, 2024
1 parent 679d0b7 commit 92f6244
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Service/Tag/Detector.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ private function getTicketKeyRegExpressions(): array
// date consisting of YYYY-MM-DD format
'(?:\d{4}-\d\d?-\d\d?)',
// Github issue URL
'(?:https://github\.com/\S{2,}/\S+/issues/\d+)',
'(?:https://github\.com/\S{2,}/\S+/issues/\d++)',
// Github pull request number of exact repo
'(?:\S{2,}/\S+\#\d+)',
'(?:\S{2,}/\S+\#\d++)',
// Github issue number
'(?:\#\d+)',
'(?:\#\d++)',
// JIRA & YouTack issue
'(?:[A-Z0-9]+-\d+)',
'(?:[A-Z0-9]++-\d++)',
// "php" or a composer package name, followed by ":" and version
'(?:php|[a-z0-9](?:[_.-]?[a-z0-9]++)*+/[a-z0-9](?:(?:[_.]|-{1,2})?[a-z0-9]++)*+):(?:[<>=]?[^\s:\-]+)',
// version
'(?:[<>=]?v?[0-9]+\.[0-9]+(\.[0-9]+)?)',
'(?:[<>=]?v?[0-9]++(\.[0-9]++){0,2})',
];
}
}

0 comments on commit 92f6244

Please sign in to comment.