Skip to content

Conversation

jekuaitk
Copy link
Collaborator

https://leantime.itkdev.dk/#/tickets/showTicket/3182

  • Normalizes white space in filenames
  • Adds archiving command

@jekuaitk jekuaitk requested a review from rimi-itk December 18, 2024 15:30
$filename = substr_replace($filename, '-' . $webformLabel . '-' . $submissionNumber, $position, 0);

// Normalize white space.
return preg_replace('/[[:space:]]/', ' ', $filename);
Copy link
Contributor

Choose a reason for hiding this comment

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

I may be worth trimming the value to get rid of any leading and trailing whitespace.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Trimmed in a384e2a!

@jekuaitk jekuaitk merged commit 53c7d8e into develop Dec 19, 2024
8 checks passed
@jekuaitk jekuaitk deleted the feature/normalize-white-space-in-filenames branch December 19, 2024 12:30
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