function swapColonAndSlash(s) {
    return s.replace(COLON_OR_SLASH, (matched) => CONVERT_MAP[matched])
}
Swaps ":" and "/", in order to use ":" as the separator in minimatch.

@param {string} s - A text to swap.
@returns {string} The text which was swapped.