Skip to content

Conversation

kmandryk
Copy link
Collaborator

This PR closes issue: [DM-497]

Includes tests? [N]
Updated docs? [N]

Proposed changes:
change max character length

Additional notes:
256 is generally OS max file name length

@kmandryk kmandryk assigned IanFonzie and unassigned IanFonzie Mar 26, 2025
@kmandryk kmandryk requested a review from IanFonzie March 26, 2025 23:25
@IanFonzie
Copy link
Collaborator

Increase max file name length to 255, aligning with OS standard
validExtensions: readonly string[] = []
): Validation<string> {
const validatedName = validateGenericString(name, "File name");
const validatedName = validateGenericString(name, "File name", 1, 255);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it help to have a comment here or a more explicit variable name explaining why we used 255 so that we don't have to refer to the PR later?

Copy link

@IanFonzie IanFonzie self-requested a review April 1, 2025 15:57
@kmandryk kmandryk merged commit 49107a8 into development Apr 1, 2025
6 checks passed
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.

2 participants