Making WordPress.org

Changeset 8055

Timestamp:
01/09/2019 02:42:17 AM (6 years ago)
Author:
dd32
Message:

Trac: Tweak the regex in r8054 to avoid matching references contained within a link that mentions it part-way through the link text.

See #3961.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r8054 r8055  
    147147
    148148        linkGutenbergIssues: function( selector ) {
    149             var gutenRegEx = /\bGB[-]?(\d+)(<\/a>)?\b/gi,
     149            var gutenRegEx = /\bGB[-]?(\d+)(/gi,
    150150                gutenInAttrRegEx = new RegExp( '="[^"]*?' + gutenRegEx.source + '[\\s\\S]*?"' );
    151151
Note: See TracChangeset for help on using the changeset viewer.