fix magit-log regexp matching with square-brackets

Fixes #718.