zoukankan      html  css  js  c++  java
  • test-code-highlight

        /**
         * This is a JavaScript sample.
         */
        var matches = require('./matches');
        
        module.exports = {
            /**
             * Applies all regular expression to the code and stores all found
             * matches in the `this.matches` array.
             */
            parse: function (code, regexList, opts) {
                var result = [];
    
                regexList = regexList || [];
    
                for (var i = 0, l = regexList.length; i < l; i++)
                    // BUG: length returns len+1 for array if methods added to prototype chain (oising@gmail.com)
                    if (typeof regexList[i] === 'object')
                        result = result.concat(matches.find(code, regexList[i]));
    
                result = matches.sort(result);
                result = matches.removeNested(result);
                result = matches.compact(result);
    
                return result;
            }
        };
    
  • 相关阅读:
    变量1
    PHP 函数
    发送post请求
    XXE
    CSRF
    Html基础
    暴力破解
    Brup sute
    XSS
    URL 传参转义 (特殊符号转义)
  • 原文地址:https://www.cnblogs.com/skating/p/7516031.html
Copyright © 2011-2022 走看看