You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: proper JSON and CSV escaping for filenames in metrics output
- Added escapeJson() method to handle quotes, backslashes, and control characters
- Added escapeCsv() method to handle commas, quotes, and newlines
- Fixed malformed string literals in escape sequences
- Prevents broken output when filenames contain special characters
- Ensures downstream parsing of JSON/CSV metrics works correctly
The escaping properly handles:
- JSON: quotes, backslashes, control characters, Unicode
- CSV: commas, quotes, newlines (wraps in quotes when needed)
0 commit comments