Ticket #17657: 17657.5.diff
File 17657.5.diff, 730 bytes (added by , 13 years ago) |
---|
-
wp-includes/js/shortcode.js
98 98 // 6. The closing tag. 99 99 // 7. An extra `]` to allow for escaping shortcodes with double `[[]]` 100 100 regexp: _.memoize( function( tag ) { 101 return new RegExp( '\\[(\\[?)(' + tag + ') \\b([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)', 'g' );101 return new RegExp( '\\[(\\[?)(' + tag + ')(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)', 'g' ); 102 102 }), 103 103 104 104