mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-65203 template: tab should be quoted to produce valid json
This commit is contained in:
parent
0b69b37f04
commit
ee58790e46
2
lib/amd/build/templates.min.js
vendored
2
lib/amd/build/templates.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -576,6 +576,7 @@ define([
|
||||
// This involves wrapping {{, and }} in change delimeter tags.
|
||||
content = content
|
||||
.replace(/"/g, '\\"')
|
||||
.replace(/\t/g, '	')
|
||||
.replace(/([{}]{2,3})/g, '{{=<% %>=}}$1<%={{ }}=%>')
|
||||
.replace(/(\r\n|\r|\n)/g, '
')
|
||||
;
|
||||
|
Loading…
x
Reference in New Issue
Block a user