NitorCreations / license-maintainer

Maintains license preamble in source files etc in your project
Other
16 stars 11 forks source link

Script fails when author name contains '<>' chars #5

Closed lalloni closed 7 years ago

lalloni commented 7 years ago

If I use:

git config license.author "John Doe <john@doe.org>"

Then, after the initial setup of license headers (which works fine, producing a correct commit), every try to make a new commit fails saying the headers are broken in all files.

Note that if I remove the email from license.author using:

git config license.author "John Doe"

Then the pre-commit hook starts working as expected.

My guess is that the author regexp built in license.pm:76 is too restrictive.

xkr47 commented 7 years ago

Fixed in #6