diff options
author | Koni Weber | 2020-09-30 16:30:16 +0200 |
---|---|---|
committer | Koni Weber | 2020-09-30 16:30:16 +0200 |
commit | a49fca3511402105635994df890e1348883598a6 (patch) | |
tree | e35927b57037ba8849c964aa26837576d7adbe01 | |
parent | e5ad0812c8c39aafc547ecb536adbcacdf8db7de (diff) | |
download | itools-a49fca3511402105635994df890e1348883598a6.tar.gz itools-a49fca3511402105635994df890e1348883598a6.tar.bz2 itools-a49fca3511402105635994df890e1348883598a6.zip |
show datetime-comment for numbers matching timestamps until 2030-03-17 18:46
-rw-r--r-- | it_debug.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class index 409b708..12fb254 100644 --- a/it_debug.class +++ b/it_debug.class @@ -129,7 +129,7 @@ static function dump($args) $item = $head . "class $classname { $values }$tail"; } - $item = preg_replace_callback('/\b(1[2345]\d\d\d\d\d\d\d\d)\b(.*)/', function($m) { return $m[1] . $m[2] . " # " . date('Y-m-d H:i:s', $m[1]); }, $item); + $item = preg_replace_callback('/\b(1[2-9]\d\d\d\d\d\d\d\d)\b(.*)/', function($m) { return $m[1] . $m[2] . " # " . date('Y-m-d H:i:s', $m[1]); }, $item); $item = preg_replace("#(=>?)\s*\n\s*(array|class)#", '$1 $2', $item); # array( and class on same line as key $item = preg_replace_callback('#array \(\s+([^(){};]{1,100}),\s+\)#', function($m) { return "array (" . preg_replace("#\n\s+#", " ", $m[1]) . ")"; }, $item); # short arrays on 1 line $item = preg_replace('#class (\S+) \{\s+([^({,;]+;)?\s+\}#', 'class $1 { $2 }', $item); # 1-element objects on 1 line |