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:
parent
5f92c0e7f4
commit
747016b9d5
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user