class PostmanService {

    String toCollectionFileName(Source source, String newmanReportPath) {
        if (source.isPostmanCountryRootFolders()) {
            // Remove optional country suffix ("_all", "_fr", "_all+fr+us"...)
            return newmanReportPath.replaceAll("_[a-z]{2,3}(\\+[a-z]{2,3})*.json$", ".json");
        }
        return newmanReportPath;
    }

}