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

Restrict filename and format strings #149

Merged
merged 1 commit into from
May 22, 2024
Merged

Restrict filename and format strings #149

merged 1 commit into from
May 22, 2024

Conversation

MrCreosote
Copy link
Member

... to a reasonable character set. This avoids characters that may cause issues in mac, linux, and windows

... to a reasonable character set. This avoids characters that may cause issues in mac, linux, and windows
@MrCreosote MrCreosote requested a review from Xiangs18 May 20, 2024 16:31
Copy link

codecov bot commented May 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.83%. Comparing base (60864d4) to head (b9da32e).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #149      +/-   ##
===========================================
+ Coverage    90.74%   90.83%   +0.08%     
===========================================
  Files           14       14              
  Lines         2053     2073      +20     
===========================================
+ Hits          1863     1883      +20     
  Misses         157      157              
  Partials        33       33              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +19 to +20
var fileCharsSet = createAllowedCharsSet(allowedFileChars)
var formatCharsSet = createAllowedCharsSet(allowedFormatChars)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Look like dicts to me. Are set concepts here similar to dictionary?

Copy link
Member Author

Choose a reason for hiding this comment

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

There's no sets in Go, so dicts with empty values is how you implement a set

@MrCreosote MrCreosote merged commit 1cc0178 into develop May 22, 2024
12 checks passed
@MrCreosote MrCreosote deleted the dev-kill_DIE branch May 22, 2024 01:58
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