fixes get first line by regexp
https://github.com/angular/dgeni-packages/pull/98#discussion_r20648929