]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/editor.js
WordPress 4.4
[autoinstalls/wordpress.git] / wp-admin / js / editor.js
index d64d3e6045b8407f95921312cbc9b2690d1d37b8..8602b1409efe8fe61c3b533688de330466b9dd71 100644 (file)
                        // Protect pre|script tags
                        if ( text.indexOf( '<pre' ) !== -1 || text.indexOf( '<script' ) !== -1 ) {
                                preserve_linebreaks = true;
-                               text = text.replace( /<(pre|script)[^>]*>[\s\S]+?<\/\1>/g, function( a ) {
+                               text = text.replace( /<(pre|script)[^>]*>[\s\S]*?<\/\1>/g, function( a ) {
                                        return a.replace( /\n/g, '<wp-line-break>' );
                                });
                        }