Commit 602c0389 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Issue #3247970 by Gábor Hojtsy, alisonjo315, mglaman, Kristen Pol: Link...

Issue #3247970 by Gábor Hojtsy, alisonjo315, mglaman, Kristen Pol: Link formatter swallows last character if it is not a period
parent ffc17b31
Loading
Loading
Loading
Loading
+1 −1
Changes for src/ScanResultFormatter.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -221,7 +221,7 @@ class ScanResultFormatter {
        $formatted_error = str_replace('\\', '\\<wbr>', $formatted_error);

        // Make drupal.org documentation links clickable.
        $formatted_error = preg_replace('!See (https://drupal.org(.\S+)).$!', 'See <a href="\1">\1<a>.', $formatted_error);
        $formatted_error = preg_replace('!See (https://drupal.org(.\S+))(\.|$)!', 'See <a href="\1">\1<a>.', $formatted_error);

        // Format core_version_requirement message.
        $formatted_error = preg_replace('!(core_version_requirement: .+) (to designate|is not)!', '<code>\1</code> \2', $formatted_error);