Skip to content

Commit 2077d36

Browse files
committed
release 1.0.1
1 parent cc73d8e commit 2077d36

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-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": "1.0.0",
3+
"version": "1.0.1",
44
"homepage": "http://rtfpessoa.github.io/diff2html/",
55
"description": "Fast Diff to colorized HTML",
66
"keywords": [

dist/diff2html.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,10 @@
278278
var values = [];
279279
if (utils.startsWith(line, 'diff')) {
280280
startFile();
281-
} else if (currentFile && !currentFile.oldName && (values = /^--- a\/(\S+).*$/.exec(line))) {
281+
} else if (currentFile && !currentFile.oldName && (values = /^--- [aiwco]\/(.+)$/.exec(line))) {
282282
currentFile.oldName = values[1];
283283
currentFile.language = getExtension(currentFile.oldName, currentFile.language);
284-
} else if (currentFile && !currentFile.newName && (values = /^\+\+\+ [b]?\/(\S+).*$/.exec(line))) {
284+
} else if (currentFile && !currentFile.newName && (values = /^\+\+\+ [biwco]?\/(.+)$/.exec(line))) {
285285
currentFile.newName = values[1];
286286
currentFile.language = getExtension(currentFile.newName, currentFile.language);
287287
} else if (currentFile && utils.startsWith(line, '@@')) {

0 commit comments

Comments
 (0)