mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user