Making WordPress.org

Changeset 3070


Ignore:
Timestamp:
05/03/2016 01:11:59 PM (9 years ago)
Author:
ocean90
Message:

Slack: When parsing the author of a ticket change exclude the closing parenthesis.

See #838.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/trac/comment-handler.php

    r3069 r3070  
    9595        array_pop( $lines );
    9696
    97         preg_match( '/^(Comment|Changes|Description changed) \(?by (.*)\)?:$/', array_shift( $lines ), $matches );
     97        preg_match( '/^(Comment|Changes|Description changed) \(?by (.*[^\)])\)?:$/', array_shift( $lines ), $matches );
    9898        $has_changes = $matches[1] === 'Changes';
    9999        $author = $matches[2];
     
    132132        $this->comment_id  = $comment_id;
    133133        $this->comment_url = $comment_url;
     134        var_dump($this);exit;
    134135    }
    135136
Note: See TracChangeset for help on using the changeset viewer.