lib/util/get-convert-path.js
function combine(converters) {
    return filePath => {
        for (const converter of converters) {
            if (converter.match(filePath)) {
                return converter.convert(filePath)
            }
        }
        return filePath
    }
}
function combine(converters) {
    return filePath => {
        for (const converter of converters) {
            if (converter.match(filePath)) {
                return converter.convert(filePath)
            }
        }
        return filePath
    }
}
function combine ( converters ) { return filePath => { for ( const converter of converters ) { if ( converter . match ( filePath ) ) { return converter . convert ( filePath ) } } return filePath } }
Combines given converters.
The result function converts a given path with the first matched converter.

@param {{match: function, convert: function}} converters - A list of converters to combine.
@returns {function} A function which replaces a given path.
Combines given converters . The result function converts a given path with the first matched converter .