Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for slice (0.58 sec)

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

                const [path, ...owners] = line.split(/\s+/);
                return {path, owners};
            });
    }
    
    function resolveCodeowners(mapping, file) {
        let match = mapping
            .slice()
            .reverse()
            .find(x =>
                ignore()
                    .add(x.path)
                    .ignores(file)
            );
        if (!match) {
            console.log("No codeowner found for: " + file);
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 19:12:32 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. .cm/plugins/filters/byCodeowner/ignore/index.js

            return this._t(path, cache, checkUnignored, slices)
        }
    
        _t (path, cache, checkUnignored, slices) {
            if (path in cache) {
                return cache[path]
            }
    
            if (!slices) {
                // path/to/a.js
                // ['path', 'to', 'a.js']
                slices = path.split(SLASH)
            }
    
            slices.pop()
    
    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