Fixes #5

Not ready for merging. Here for review. See #5 and https://github.com/yeoman/yo/pull/167. Better ideas are welcome!
Bump to latest ansi-regex and you should get a signature like `function (match, offset, string)`