blob: 2e1e1e9f621c3ef76815239f7302639e9bbaafa6 (
plain)
1
2
3
4
5
6
7
|
const leftPad = require('left-pad'); // I imported this just to piss you off ;)
function getURLOfUser(scheduleType, type, index, week) {
return `/${scheduleType}roosters/${leftPad(week, 2, '0')}/${type}/${type}${leftPad(index + 1, 5, '0')}.htm`;
}
module.exports = getURLOfUser;
|