mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-01 01:51:44 +00:00
fix(cli): keep snake_case underscores intact in strip markdown mode
This commit is contained in:
parent
b2111a2b45
commit
aa61831a14
4 changed files with 36 additions and 5 deletions
|
|
@ -97,4 +97,12 @@ describe('estimateRows', () => {
|
|||
|
||||
expect(estimateRows(md, 40)).toBe(2)
|
||||
})
|
||||
|
||||
it('keeps intraword underscores when sizing snake_case identifiers', () => {
|
||||
const w = 80
|
||||
const snake = 'look at recover_with_credential_pool now'
|
||||
const plain = 'look at recover with credential pool now'
|
||||
|
||||
expect(estimateRows(snake, w)).toBe(estimateRows(plain, w))
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue