https://bugzilla.wikimedia.org/show_bug.cgi?id=73113

--- Comment #1 from Sam Reed (reedy) <[email protected]> ---
        // Step 2: Generalise it
        // Trim off the timezone to replace at the end
        $output = $exemplarTimestamp;
        $tzRegex = '/\s*\(\w+\)\s*$/';
        $tzMatches = array();
        preg_match( $tzRegex, $output, $tzMatches );
        $output = preg_replace( $tzRegex, '', $output );
        $output = preg_quote( $output, '/' );
        $output = preg_replace( '/[^\d\W]+/u', '[^\d\W]+', $output );
        $output = preg_replace( '/\d+/u', '\d+', $output );

        $output .= preg_quote( $tzMatches[0] );


I guess it means the regex didn't match...

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to