Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for amatch (0.13 sec)

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

            // > will only match directories, otherwise the pattern can match both
            // > files and directories.
    
            // 'js*' will not match 'a.js'
            // 'js/' will not match 'a.js'
            // 'js' will match 'a.js' and 'a.js/'
            match => /\/$/.test(match)
                // foo/ will not match 'foo'
                ? `${match}$`
                // foo matches 'foo' and 'foo/'
    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)
  2. .cm/plugins/filters/byCodeowner/index.js

    }
    
    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);
            return ['No owner'];
        }
        return match.owners;
    }
    
    module.exports = {
        async: true,
    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)
Back to top