example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function(regexGroup)
        {
            var regex = { 'end' : regexGroup.right.source };

            if(regexGroup.eof)
                regex.end = "(?:(?:" + regex.end + ")|$)";

            this.htmlScript = {
                left : { regex: regexGroup.left, css: 'script' },
                right : { regex: regexGroup.right, css: 'script' },
                code : new XRegExp(
                    "(?<left>" + regexGroup.left.source + ")" +
                        "(?<code>.*?)" +
                        "(?<right>" + regex.end + ")",
                    "sgi"
                )
            };
        }
function(regexGroup)
        {
            var regex = { 'end' : regexGroup.right.source };

            if(regexGroup.eof)
                regex.end = "(?:(?:" + regex.end + ")|$)";

            this.htmlScript = {
                left : { regex: regexGroup.left, css: 'script' },
                right : { regex: regexGroup.right, css: 'script' },
                code : new XRegExp(
                    "(?<left>" + regexGroup.left.source + ")" +
                        "(?<code>.*?)" +
                        "(?<right>" + regex.end + ")",
                    "sgi"
                )
            };
        }
function ( regexGroup ) { var regex = { 'end' : regexGroup . right . source } ; if ( regexGroup . eof ) regex . end = "(?:(?:" + regex . end + ")|$)" ; this . htmlScript = { left : { regex : regexGroup . left , css : 'script' } , right : { regex : regexGroup . right , css : 'script' } , code : new XRegExp ( "(?<left>" + regexGroup . left . source + ")" + "(?<code>.*?)" + "(?<right>" + regex . end + ")" , "sgi" ) } ; }
Makes a brush compatible with the `html-script` functionality.
@param {Object} regexGroup Object containing `left` and `right` regular expressions.
Makes a brush compatible with the html - script functionality .