summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Helbling2017-01-18 16:41:34 +0100
committerChristian Helbling2017-01-18 16:41:34 +0100
commit6487a46d51b58ea5a53a67143520fdd7e44fd3b2 (patch)
treee359503758a7ef8cc7810f4673048b1e5792eef3
parentb9f1fb203975fbf76a32a8a2dd8f9113fb136939 (diff)
downloaditools-6487a46d51b58ea5a53a67143520fdd7e44fd3b2.tar.gz
itools-6487a46d51b58ea5a53a67143520fdd7e44fd3b2.tar.bz2
itools-6487a46d51b58ea5a53a67143520fdd7e44fd3b2.zip
expand unix timestamps between 14.07.2017 04:40 and 13.09.2020 14:26 as well
-rw-r--r--it_debug.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class
index 3cd3237..0a290b5 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[234]\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[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("#(=>?)\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