Changeset 18669

Show
Ignore:
Timestamp:
09/02/08 22:47:35 (4 months ago)
Author:
drry
Message:
  • 正規表現を修正しました。
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/php/misc/Logging/layout/SimpleLayout.php

    r18405 r18669  
    1818    ); 
    1919    public function format(LoggingEvent $event){ 
    20         return preg_replace('/(%[a-zA-Z%])/e', 'self::replace($event, \'\\1\')', $this->message); 
     20        return preg_replace('/%[a-zA-Z%]/e', 'self::replace($event, \'$0\')', $this->message); 
    2121    } 
    2222    protected static function replace(LoggingEvent $event, $key){