Making WordPress.org

Changeset 2704


Ignore:
Timestamp:
03/08/2016 11:07:39 AM (9 years ago)
Author:
ocean90
Message:

Slack: Improve the comment added in [2703].

And here are some fancy characters for testing purposes: …, —, “, ’, and ”.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/trac/commit.php

    r2703 r2704  
    6565
    6666    static function format_commit_for_slack( Trac $trac, $message ) {
    67         // Convert ASCII chars with a UTF-8 char, like ?\226?\128?\148 => — (m-dash).
     67        // Convert ASCII numbers to an UTF-8 character, like ?\226?\128?\148 => — (m-dash).
    6868        $message = preg_replace_callback( '/(?:\?\\\\(\d+))/', function( $matches ) {
    6969            return chr( $matches[1] );
Note: See TracChangeset for help on using the changeset viewer.