Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for makeRegex (0.19 sec)

  1. .cm/plugins/filters/byCodeowner/ignore/index.js

            }
        ],
    ]
    
    // A simple cache, because an ignore rule only has only one certain meaning
    const regexCache = Object.create(null)
    
    // @param {pattern}
    const makeRegex = (pattern, ignoreCase) => {
        let source = regexCache[pattern]
    
        if (!source) {
            source = REPLACERS.reduce(
                (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top