Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for bindIf (0.15 sec)

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

    const makeRegex = (pattern, ignoreCase) => {
        let source = regexCache[pattern]
    
        if (!source) {
            source = REPLACERS.reduce(
                (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
                pattern
            )
            regexCache[pattern] = source
        }
    
        return ignoreCase
            ? new RegExp(source, 'i')
            : new RegExp(source)
    }
    
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top