Skip to content

Commit

Permalink
modify the Regex in binaryFileChange
Browse files Browse the repository at this point in the history
  • Loading branch information
shilin8805 authored Jun 29, 2019
1 parent 164ad75 commit 9a3ecd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/responses/DiffSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function textFileChange (line, files) {
}

function binaryFileChange (line, files) {
line = line.match(/^(.+) \| Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)$/);
line = line.match(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)$/);
if (line) {
files.push({
file: line[1].trim(),
Expand Down

0 comments on commit 9a3ecd7

Please sign in to comment.