Skip to content

Commit 1b9200b

Browse files
committed
Release version 2.0.10
1 parent bea194c commit 1b9200b

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "diff2html",
3-
"version": "2.0.9",
3+
"version": "2.0.10",
44
"homepage": "https://diff2html.xyz",
55
"description": "Fast Diff to colorized HTML",
66
"keywords": [

dist/diff2html.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2810,6 +2810,11 @@ process.umask = function() { return 0; };
28102810
// Remove prefix if exists
28112811
filename = filename.slice(matchingPrefixes[0].length);
28122812
}
2813+
2814+
// Cleanup timestamps generated by the unified diff (diff command) as specified in
2815+
// https://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html
2816+
// Ie: 2016-10-25 11:37:14.000000000 +0200
2817+
filename = filename.replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? \+\d{4}.*$/, '');
28132818
}
28142819

28152820
return filename;

dist/diff2html.min.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "diff2html",
3-
"version": "2.0.9",
3+
"version": "2.0.10",
44
"homepage": "https://diff2html.xyz",
55
"description": "Fast Diff to colorized HTML",
66
"keywords": [

0 commit comments

Comments
 (0)