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-groups/bp-groups-notifications.php

    r3917 r4118  
    254254
    255255    /* Scan for @username strings in an activity update. Notify each user. */
    256     $pattern = '/[@]+([A-Za-z0-9-_\.]+)/';
     256    $pattern = '/[@]+([A-Za-z0-9-_\.@]+)/';
    257257    preg_match_all( $pattern, $content, $usernames );
    258258
Note: See TracChangeset for help on using the changeset viewer.