Making WordPress.org


Ignore:
Timestamp:
08/13/2020 02:52:09 AM (4 years ago)
Author:
dd32
Message:

Slack: Trac: Allow changeset links to be up to 7 digits, will probably work.
Fixes Theme changeset limits truncating.

File:
1 edited

Legend:

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

    r9228 r10160  
    5757
    5858    function parse_commits( $text ) {
    59         $digits = '[1-9][0-9]{1,4}'; // two digits minimum, five digits maximum (avoid clashing with colors), cannot start with 0.
     59        $digits = Trac::get_digit_capture();
    6060        $commit_tracs = '?<trac>' . Trac::get_regex();
    6161        preg_match_all( "/\br(?<id>$digits)(?:\-($commit_tracs))?\b/", $text, $revisions, PREG_SET_ORDER );
Note: See TracChangeset for help on using the changeset viewer.