valderman/haste-compiler — pull request #119 by aycanirican (2013-11-22 23:08:00+00:00)
Title: replace quotes globally.

Quoted strings are handled wrong. This fixes the issue.

>>> "asd \"is\" not \"asd\"".replace(/"/, '\\"');
"asd \"is" not "asd""
>>> "asd \"is\" not \"asd\"".replace(/"/g, '\\"');
"asd \"is\" not \"asd\""