Skip to content

Commit

Permalink
testing regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Mar 9, 2015
1 parent e8327b2 commit b6d7eb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# ggit v0.10.1
# ggit v0.10.2

> Local promise-returning git command wrappers
Expand Down
2 changes: 1 addition & 1 deletion 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 <gleb.bahmutov@gmail.com>",
"bin": {
"ggit": "./index.js"
Expand Down
4 changes: 3 additions & 1 deletion src/commit-numstat.js
Expand Up @@ -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);
Expand Down

0 comments on commit b6d7eb5

Please sign in to comment.