@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
13 lines • 608 B
JavaScript
import { gulpParam1, gulpParam2 } from "./CommonDevUrls";
export function addGulpParam(current) {
const hasGulp1 = current.indexOf(gulpParam1) > 0 ? true : false;
const hasGulp2 = current.indexOf(gulpParam2) > 0 ? true : false;
if (hasGulp1 === true || hasGulp2 === true)
return current;
const final = current.indexOf('?') > 0 ? `${current}&${gulpParam1}` : `${current}?${gulpParam1}`;
return final;
}
export function removeGulpParam(current) {
return !current ? '' : current.replace(gulpParam1, '').replace(gulpParam2, '');
}
//# sourceMappingURL=GulpLinks.js.map