Compiler: Fixes sourcemap regex. (#1123)

Fixes #1123.