cleanURL function
Implementation
String? cleanURL(Map<String, Config> masterConfig, String? url) {
if (url != null) {
Config? config = getConfig(masterConfig, url, Extract.product);
if (config == null) {
return null;
}
Target? target = fetchTarget(config.targets, url);
if (target != null) {
return runCleaner(url, target.cleaner);
}
}
return null;
}