Making WordPress.org

Ticket #1541: meta-1541.patch

File meta-1541.patch, 718 bytes (added by SergeyBiryukov, 9 years ago)
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

     
    103103                                $comment = $( this ).html();
    104104                                if ( mentionsRegEx.test( $comment ) ) {
    105105                                        $comment = $comment.replace( mentionsRegEx, function( match, pre, username ) {
     106                                                var matchInAttr = new RegExp( '=".*' + match + '.*"' );
     107
     108                                                if ( matchInAttr.test( $comment ) ) {
     109                                                        return match;
     110                                                }
     111
    106112                                                if ( -1 !== $.inArray( username, reservedTerms ) ) {
    107113                                                        return match;
    108114                                                }