public static function linkify()

in app/classes/ReleaseInsights/Bugzilla.php [27:39]


    public static function linkify(string $text): ?string
    {
        return preg_replace_callback(
            "/bug +\d+/i",
            fn(array $matches) => '<a href="'
            . URL::Bugzilla->value
            . trim(str_ireplace('bug', '', (string) $matches[0]))
            . '">'
            . $matches[0]
            . '</a>',
            $text
        );
    }