Skip to:
Content

BuddyPress.org

Changeset 5546


Ignore:
Timestamp:
12/13/2011 07:23:42 PM (12 years ago)
Author:
boonebgorges
Message:

Don't count word-ending periods when sniffing out at-mentions in bp_activity_find_mentions.
Fixes #3721
Props lsparks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-functions.php

    r5506 r5546  
    3838 */
    3939function bp_activity_find_mentions( $content ) {
    40     $pattern = '/[@]+([A-Za-z0-9-_\.@]+)/';
     40    $pattern = '/[@]+([A-Za-z0-9-_\.@]+)\b/';
    4141    preg_match_all( $pattern, $content, $usernames );
    4242
Note: See TracChangeset for help on using the changeset viewer.