Skip to content

Commit ffa8582

Browse files
committed
Improve GHSA keyword detection
1 parent 67e122b commit ffa8582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KeywordEnhancer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private static function linkToSecurityAnnouncements(string $inputText): string {
8686
);
8787
}
8888

89-
if (preg_match('/(GHSA-[a-z\d-]{14})(\W)/', $inputText)) {
89+
if (preg_match('/(GHSA-[a-z\d-]{14})(\W)/i', $inputText)) {
9090
$inputText = preg_replace(
9191
'/(GHSA-[a-z\d-]{14})(\W)/',
9292
"[$1](https://github.com/php/php-src/security/advisories/$1)$2",

0 commit comments

Comments
 (0)