I think we could simplify the line regexp and make the logic a little more straightforward by using `aGeneratedCode.split(REGEX_LINE)` where we redefine `REGEX_LINE` to `/\r?\n/`. That's a lot easier than trying to write a regexp to capture each line and using match to get an array of each line.