Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/11/2011 09:00:05 PM (14 years ago)
Author:
boonebgorges
Message:

Modifies @-mention regex to better handle @ signs in usernames. Fixes #2057. Props boonebgorges and SergeyBiryukov

File:
1 edited

Legend:

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

    r3985 r4118  
    2020 */
    2121function bp_activity_find_mentions( $content ) {
    22     $pattern = '/[@]+([A-Za-z0-9-_\.]+)/';
     22    $pattern = '/[@]+([A-Za-z0-9-_\.@]+)/';
    2323    preg_match_all( $pattern, $content, $usernames );
    2424
Note: See TracChangeset for help on using the changeset viewer.