init
This commit is contained in:
commit
ec53fcbe95
1905 changed files with 513762 additions and 0 deletions
12
utils/sandbox/sandbox-ui-utils.ts
Normal file
12
utils/sandbox/sandbox-ui-utils.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* 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, '')
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue