Skip social media fields (Twitter, GitHub, etc.) in form filler

Return empty string to leave them blank without triggering needs_answer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 20:32:30 -08:00
parent f85c4295eb
commit a4f84cd4c3

View File

@@ -177,6 +177,7 @@ export class FormFiller {
if (l.includes('state') && !l.includes('statement')) return p.location?.state || null; if (l.includes('state') && !l.includes('statement')) return p.location?.state || null;
if (l.includes('linkedin')) return p.linkedin_url || null; if (l.includes('linkedin')) return p.linkedin_url || null;
if (l.includes('website') || l.includes('portfolio')) return p.linkedin_url || null; if (l.includes('website') || l.includes('portfolio')) return p.linkedin_url || null;
if (l.includes('twitter') || l.includes('github') || l.includes('instagram') || l.includes('facebook')) return '';
if (l.includes('currently located') || l.includes('current location') || l.includes('where are you')) { if (l.includes('currently located') || l.includes('current location') || l.includes('where are you')) {
return `${p.location?.city || ''}, ${p.location?.state || ''}`.trim().replace(/^,\s*|,\s*$/, ''); return `${p.location?.city || ''}, ${p.location?.state || ''}`.trim().replace(/^,\s*|,\s*$/, '');
} }