Skip to content

fix(app): avoid reserved export names - #49138

Open
sdivyanshu90 wants to merge 1 commit into
anomalyco:devfrom
sdivyanshu90:safe-export-names
Open

sdivyanshu90 wants to merge 1 commit into
anomalyco:devfrom
sdivyanshu90:safe-export-names

Conversation

@sdivyanshu90

Copy link
Copy Markdown

Issue for this PR

Closes #49137

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Detects Windows-reserved device basenames after session-title sanitization and adds a -session suffix. Ordinary export filenames and the existing title, slug, and ID fallback order remain unchanged.

How did you verify your code works?

Added coverage for CON, PRN, AUX, NUL, every COM1-COM9 and LPT1-LPT9 name, plus valid adjacent names. Ran the focused session-export test from packages/app: 6 tests passed with 29 assertions.

Screenshots / recordings

Not applicable; this is a non-UI filename-generation fix.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session exports use Windows-reserved filenames

1 participant