fix(comparison): fix two more FAQ text-mangling bugs found during fin… · simstudioai/sim@d466ba0 · GitHub
Skip to content

Commit d466ba0

Browse files
committed
fix(comparison): fix two more FAQ text-mangling bugs found during final audit
- lowercaseFirst only guarded against 2+ CONSECUTIVE leading capitals (acronyms like "AI"/"SSO"), so CamelCase brand names with a single leading capital (LangChain, OpenClaw, CrewAI) got their first letter wrongly lowercased ("langChain provides..."). Now checks for 2+ uppercase letters anywhere in the leading word, which covers both acronyms and CamelCase brand names. - parseFactValue and summarizeFact's boolean-prefix stripping only recognized "Yes:"/"No:" (colon), but "Yes, ..."/"No, ..." (comma) is an equally common phrasing already used across ~15 existing facts (stackai, pipedream, workato, zapier, etc.), so those facts kept their leading comma when stitched into an FAQ answer (e.g. "StackAI: , broad support..."). Both now accept either separator. Found by systematically sweeping every "Sim vs X" FAQ answer across all 20 competitor pages for garbled/mis-cased text, not just the 5 newly added ones.
1 parent 26685f8 commit d466ba0

2 files changed

Lines changed: 21 additions & 11 deletions

File tree

apps/sim/app/(landing)/comparison/fact-status.ts

Lines changed: 7 additions & 5 deletions

apps/sim/app/(landing)/comparison/utils.ts

Lines changed: 14 additions & 6 deletions

0 commit comments

Comments
 (0)