strop prefix lmao

This commit is contained in:
Nathan 2026-02-18 12:36:30 -05:00
parent fda4c1a5ca
commit 23f71c91da

View file

@ -35,7 +35,11 @@ export async function submitProjectToYSWS(project: {
}
const hackatimeProjects = project.hackatimeProject
? project.hackatimeProject.split(',').map(n => n.trim()).filter(n => n.length > 0)
? project.hackatimeProject.split(',').map(n => {
const trimmed = n.trim()
const slashIndex = trimmed.indexOf('/')
return slashIndex !== -1 ? trimmed.substring(slashIndex + 1) : trimmed
}).filter(n => n.length > 0)
: []
const hackatimeId = await lookupHackatimeId(project.email)