MDL-66542 lib: Fix quote escaping in JS quote helper

This commit is contained in:
Tim Schroeder 2019-08-28 13:41:04 +02:00
parent 9528b1ff5b
commit f8f04b773d
No known key found for this signature in database
GPG Key ID: 44FD4F625FBA67CD
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -492,7 +492,7 @@ define([
// Escape the {{ and the ".
// This involves wrapping {{, and }} in change delimeter tags.
content = content
.replace('"', '\\"')
.replace(/"/g, '\\"')
.replace(/([\{\}]{2,3})/g, '{{=<% %>=}}$1<%={{ }}=%>')
.replace(/(\r\n|\r|\n)/g, '&#x0a;')
;