Update the JS version of the shortcode regex to match [22382]. props SergeyBiryukov. fixes #17657.
git-svn-id: https://develop.svn.wordpress.org/trunk@22522 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ba1682a270
commit
331bcde9c2
|
@ -98,7 +98,7 @@ window.wp = window.wp || {};
|
|||
// 6. The closing tag.
|
||||
// 7. An extra `]` to allow for escaping shortcodes with double `[[]]`
|
||||
regexp: _.memoize( function( tag ) {
|
||||
return new RegExp( '\\[(\\[?)(' + tag + ')\\b([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)', 'g' );
|
||||
return new RegExp( '\\[(\\[?)(' + tag + ')(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)', 'g' );
|
||||
}),
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue