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-notifications.php

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