Changeset 3085
- Timestamp:
- 05/05/2016 11:27:41 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/trac/commit.php
r2704 r3085 66 66 static function format_commit_for_slack( Trac $trac, $message ) { 67 67 // Convert ASCII numbers to an UTF-8 character, like ?\226?\128?\148 => — (m-dash). 68 $message = preg_replace_callback( '/(?:\?\\\\(\d +))/', function( $matches ) {68 $message = preg_replace_callback( '/(?:\?\\\\(\d{1,3}))/', function( $matches ) { 69 69 return chr( $matches[1] ); 70 70 }, $message );
Note: See TracChangeset
for help on using the changeset viewer.