fix magit-log regexp matching with square-brackets

Fixes #718.
Merge branch 'fix-log-regexp'