Making WordPress.org

Changeset 1971


Ignore:
Timestamp:
10/11/2015 10:24:01 PM (6 years ago)
Author:
ocean90
Message:

Trac: Update mentionsRegEx to support usernames with up to 20 chars.

See #830.

File:
1 edited

Legend:

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

    r1967 r1971  
    8787        linkMentions: function() {
    8888            // See https://github.com/regexps/mentions-regex/blob/master/index.js#L21
    89             var mentionsRegEx = /(?:^|[^a-zA-Z0-9_@!@#$%&*])(?:(?:@|@)(?!\/))([a-zA-Z0-9/_.]{1,15})(?:\b(?!@|@)|$)/g;
     89            var mentionsRegEx = /(?:^|[^a-zA-Z0-9_@!@#$%&*])(?:(?:@|@)(?!\/))([a-zA-Z0-9/_.]{1,20})(?:\b(?!@|@)|$)/g;
    9090
    9191            $( 'div.change .comment, #ticket .description' ).each( function() {
Note: See TracChangeset for help on using the changeset viewer.