Skip to content

Commit

Permalink
fix regular expression to match author from git blame output
Browse files Browse the repository at this point in the history
  • Loading branch information
hvaldecantos committed Apr 13, 2015
1 parent 76c3a16 commit 5dab45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/interactive_churn/churn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Churn
# A string with a regular expresion to match a group with the author from `git log` line where author appears.
AUTHOR = /^Author:\s(.*[^\s])\s+</
# A string with a regular expresion to match a group with the author from `git blame` line where author appears.
AUTHOR_BLAME = /\((.*[^\s])\s+\d\d\d\d/
AUTHOR_BLAME = /\((.*[^\s])\s+\d\d\d\d-\d\d-\d\d\s\d\d:\d\d:\d\d/
# A string with a regular expresion to match a group with the file from `git log` line where file appears.
FILE = /^diff\s--git\sa\/.*\sb\/(.*)$/
# A string with a regular expresion to match groups for each number in the patch-at line from `git log`.
Expand Down

0 comments on commit 5dab45f

Please sign in to comment.