Changeset 22522
- Timestamp:
- 11/10/2012 07:23:55 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/shortcode.js
r22126 r22522 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
Note: See TracChangeset
for help on using the changeset viewer.