Merge pull request #163 from shenlvkang-collab/fix/unicode-working-directories

fix(paths): accept Unicode working directories
This commit is contained in:
Ark0N
2026-07-23 09:13:24 +02:00
committed by GitHub
3 changed files with 26 additions and 2 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ export function stripAnsi(text: string): string {
*/
export const SPINNER_PATTERN = /[⠋⠙⠹⠸⠼⠴⠦⠧]/;
export const SAFE_PATH_PATTERN = /^[a-zA-Z0-9_/\-. ~]+$/;
export const SAFE_PATH_PATTERN = /^[\p{L}\p{N}_/\-. ~]+$/u;
/**
* Execute a global regex pattern against data, calling the callback for each match.