mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-02 02:01:47 +00:00
feat: better hyperlink formatting
This commit is contained in:
parent
74241328f0
commit
b7d4ea1550
2 changed files with 18 additions and 5 deletions
|
|
@ -5,7 +5,7 @@ const ANSI_RE = /\x1b\[[0-9;]*m/g
|
|||
|
||||
export const stripAnsi = (s: string) => s.replace(ANSI_RE, '')
|
||||
|
||||
export const hasAnsi = (s: string) => s.includes('\x1b[')
|
||||
export const hasAnsi = (s: string) => s.includes('\x1b[') || s.includes('\x1b]')
|
||||
|
||||
const renderEstimateLine = (line: string) => {
|
||||
const trimmed = line.trim()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue