mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-05 07:41:39 +00:00
fix(tui): keep x status citation fallbacks link-like
This commit is contained in:
parent
87ace43f1e
commit
7321b3c2db
2 changed files with 12 additions and 0 deletions
|
|
@ -30,6 +30,12 @@ describe('external link helpers', () => {
|
|||
).toBe('From Fajardo Icacos Island Full Day Catamaran Trip')
|
||||
})
|
||||
|
||||
it('keeps x.com status fallbacks link-like instead of generic Status labels', () => {
|
||||
expect(urlSlugTitleLabel('https://x.com/grok/status/2056065022749479209')).toBe(
|
||||
'x.com/grok/status/2056065022749479209'
|
||||
)
|
||||
})
|
||||
|
||||
it('normalizes scheme-less links', () => {
|
||||
expect(normalizeExternalUrl(' expedia.com/things-to-do/puerto-rico-el-yunque ')).toBe(
|
||||
'https://expedia.com/things-to-do/puerto-rico-el-yunque'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue