Fixed regex to allow for empty source code.

Closes #2