Changeset 4118
- Timestamp:
- 03/11/2011 09:00:05 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-functions.php
r3985 r4118 20 20 */ 21 21 function bp_activity_find_mentions( $content ) { 22 $pattern = '/[@]+([A-Za-z0-9-_\. ]+)/';22 $pattern = '/[@]+([A-Za-z0-9-_\.@]+)/'; 23 23 preg_match_all( $pattern, $content, $usernames ); 24 24 -
trunk/bp-activity/bp-activity-notifications.php
r3917 r4118 13 13 14 14 /* Scan for @username strings in an activity update. Notify each user. */ 15 $pattern = '/[@]+([A-Za-z0-9-_\. ]+)/';15 $pattern = '/[@]+([A-Za-z0-9-_\.@]+)/'; 16 16 preg_match_all( $pattern, $content, $usernames ); 17 17 -
trunk/bp-forums/bp-forums-filters.php
r4088 r4118 124 124 $content = htmlspecialchars_decode( $content ); 125 125 126 $pattern = "|<a href='" . bp_get_root_domain() . "/" . bp_get_members_root_slug() . "/[A-Za-z0-9-_\.]+/' rel='nofollow'>(@[A-Za-z0-9-_\. ]+)</a>|";126 $pattern = "|<a href='" . bp_get_root_domain() . "/" . bp_get_members_root_slug() . "/[A-Za-z0-9-_\.]+/' rel='nofollow'>(@[A-Za-z0-9-_\.@]+)</a>|"; 127 127 128 128 $content = preg_replace( $pattern, "$1", $content ); -
trunk/bp-groups/bp-groups-notifications.php
r3917 r4118 254 254 255 255 /* Scan for @username strings in an activity update. Notify each user. */ 256 $pattern = '/[@]+([A-Za-z0-9-_\. ]+)/';256 $pattern = '/[@]+([A-Za-z0-9-_\.@]+)/'; 257 257 preg_match_all( $pattern, $content, $usernames ); 258 258
Note: See TracChangeset
for help on using the changeset viewer.