mirror of
http://10.0.2.1:3031/sauer/claude-code.git
synced 2026-06-30 19:26:58 +10:00
13 lines
389 B
TypeScript
13 lines
389 B
TypeScript
|
|
/**
|
||
|
|
* UI utilities for sandbox violations
|
||
|
|
* These utilities are used for displaying sandbox-related information in the UI
|
||
|
|
*/
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Remove <sandbox_violations> tags from text
|
||
|
|
* Used to clean up error messages for display purposes
|
||
|
|
*/
|
||
|
|
export function removeSandboxViolationTags(text: string): string {
|
||
|
|
return text.replace(/<sandbox_violations>[\s\S]*?<\/sandbox_violations>/g, '')
|
||
|
|
}
|