diff --git a/README.md b/README.md index f650cf7..2f6bc2f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ggit v0.10.1 +# ggit v0.10.2 > Local promise-returning git command wrappers diff --git a/package.json b/package.json index d5b9e2a..5503e85 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ggit", "description": "Local promise-returning git command wrappers", - "version": "0.10.1", + "version": "0.10.2", "author": "Gleb Bahmutov ", "bin": { "ggit": "./index.js" diff --git a/src/commit-numstat.js b/src/commit-numstat.js index 645c753..8b9895a 100644 --- a/src/commit-numstat.js +++ b/src/commit-numstat.js @@ -36,9 +36,11 @@ Date: Mon Jan 13 19:04:06 2014 -0500 2 1 package.json */ function isValidLine(line) { - var rex = /^\s+\d+\s+\d+[\w]+$/; + var rex = /^\s*\d+\s+\d+[\w\W]+$/; return line && rex.test(line); } +la(isValidLine('1 1 time-method-call.js')); +la(isValidLine(' 1 0 README.md')); function parseNumstat(stdout) { la(check.unemptyString(stdout), 'missing numstat output', stdout);