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
1 changed files with 1 additions and 1 deletions

View File

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