Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
fix: simplify category formatting in convertResumeToText function
Khuram Niaz311723fa54ed
diff --git a/src/lib/ai/tools/preprocessing.ts b/src/lib/ai/tools/preprocessing.tsindex 566f989..f55800b 100644--- a/src/lib/ai/tools/preprocessing.ts+++ b/src/lib/ai/tools/preprocessing.ts@@ -229,11 +229,9 @@ export const convertResumeToText = (resume: Resume): Promise<string> => {if (!grouped.has(key)) grouped.set(key, []);grouped.get(key)!.push(s);}- const toTitleCase = (s: string) =>- s.replace(/\w\S*/g, (w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase());const lines = Array.from(grouped.entries()).map(([cat, items]) => {const labels = items.map((s) => s.Tag?.label).filter(Boolean).join(", ");- return cat ? `${toTitleCase(cat)}: ${labels}` : labels;+ return cat ? `${cat}: ${labels}` : labels;});return `## ${section.sectionTitle.toUpperCase()}\n${lines.join("\n")}`;}