Skip to content

Commit

Permalink
debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
vadiminc committed Jan 28, 2024
1 parent 2c0d7e0 commit bff12de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/tsc/src/commands/actions/validators/file.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tsc/src/commands/actions/validators/file.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/commands/actions/validators/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export const sanitizePath = (inputPath: string): string => {
// Modify this regex based on your specific requirements.
sanitizedPath = sanitizedPath.replace(/[^a-zA-Z0-9 _\-.\\\/]/g, '');

console.log(`Current platform: ${process.platform}`);

// Handle Windows-specific path formatting (like drive letters).
if (process.platform === 'win32') {
console.log('[debug] windows');
Expand Down

0 comments on commit bff12de

Please sign in to comment.