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

git-svn-id: https://develop.svn.wordpress.org/trunk@22539 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-11-10 21:38:14 +00:00
parent 5f92c0e7f4
commit 747016b9d5
1 changed files with 1 additions and 1 deletions

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 ) {