Media templates: Alter escaping regular expression to prevent it from aggresively consuming input meant for interpolation. see #22344, #21390.

git-svn-id: http://core.svn.wordpress.org/trunk@22539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Daryl Koopersmith 2012-11-10 21:38:14 +00:00
parent 31e669df5a
commit 0422f833a8

View File

@ -80,7 +80,7 @@ window.wp = window.wp || {};
options = {
evaluate: /<#([\s\S]+?)#>/g,
interpolate: /\{\{\{([\s\S]+?)\}\}\}/g,
escape: /\{\{([\s\S]+?)\}\}/g
escape: /\{\{([^\}]+?)\}\}(?!\})/g
};
return function( data ) {