aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng')
-rw-r--r--src/ng/parse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/parse.js b/src/ng/parse.js
index c93d07de..3be98573 100644
--- a/src/ng/parse.js
+++ b/src/ng/parse.js
@@ -1017,7 +1017,7 @@ function getterFn(path, options, fullExp) {
: '((k&&k.hasOwnProperty("' + key + '"))?k:s)') + '["' + key + '"]' + ';\n' +
(options.unwrapPromises
? 'if (s && s.then) {\n' +
- ' pw("' + fullExp.replace(/\"/g, '\\"') + '");\n' +
+ ' pw("' + fullExp.replace(/(["\r\n])/g, '\\$1') + '");\n' +
' if (!("$$v" in s)) {\n' +
' p=s;\n' +
' p.$$v = undefined;\n' +