Verified Commit be533e89 authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Update internal helper module

parent 7ec143ef
......@@ -108,6 +108,16 @@ helpers.extractDomainFromUrl = function (url, normalize) {
return extractedDomain;
};
helpers.extractFilenameFromPath = function (path) {
let pathSegments, filename;
pathSegments = path.split('/');
filename = pathSegments[pathSegments.length - 1];
return filename;
};
helpers.determineCdnName = function (domainName) {
switch (domainName) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment