Single-arg fat arrow function breaks brakes
rocksoftcode opened this issue · comments
rocksoftcode commented
Sending a fat arrow function without parens (one arg only) into brakes causes an exception: TypeError: Cannot read property '1' of null
It appears to be breaking on the regex in getFnArgs
in lib/utils.js
:
/^[function\s]?.*?\(([^)]*)\)/
rocksoftcode commented
Here's a PR for a potential fix: #84
Alex Wolden commented
Thanks for the contribution @rockympls!