mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-16 19:29:33 +01:00
chore: bump version to 0.1550
This commit is contained in:
1 parent
1833a9ac2d
commit
926e77b1c2
27 files changed
+290
-1067
No files matched your search
@@ -64,10 +64,8 @@ export function stripAnsi(text: string): string {
|
||||
}
|
||||
|
||||
/**
|
||||
* Strips simple ANSI CSI codes from text (faster, less comprehensive).
|
||||
* @param text - Text containing ANSI escape codes
|
||||
* @returns Text with ANSI CSI codes removed
|
||||
* Regex to validate safe file paths (no shell metacharacters).
|
||||
* Shared by schemas.ts and tmux-manager.ts for consistent path validation.
|
||||
*/
|
||||
export function stripAnsiSimple(text: string): string {
|
||||
return text.replace(ANSI_ESCAPE_PATTERN_SIMPLE, '');
|
||||
}
|
||||
export const SAFE_PATH_PATTERN = /^[a-zA-Z0-9_\/\-. ~]+$/;
|
||||
|
||||
Reference in new issue
Block a user