source dump of claude code
at main 12 lines 389 B view raw
1/** 2 * UI utilities for sandbox violations 3 * These utilities are used for displaying sandbox-related information in the UI 4 */ 5 6/** 7 * Remove <sandbox_violations> tags from text 8 * Used to clean up error messages for display purposes 9 */ 10export function removeSandboxViolationTags(text: string): string { 11 return text.replace(/<sandbox_violations>[\s\S]*?<\/sandbox_violations>/g, '') 12}