Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalized white space in filenames #20

Merged
merged 6 commits into from
Dec 19, 2024

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);

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