mirror of
https://github.com/System-End/scraps.git
synced 2026-04-19 22:05:09 +00:00
strop prefix lmao
This commit is contained in:
parent
fda4c1a5ca
commit
23f71c91da
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue