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

Add isSnapId utility function #2808

Merged
merged 3 commits into from
Oct 8, 2024
Merged

Add isSnapId utility function #2808

merged 3 commits into from
Oct 8, 2024

Conversation

Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Oct 8, 2024

This adds a isSnapId function which accepts any value, and returns a boolean if the input is a valid Snap ID or not.

This is extracted from #2634.

@Mrtenz Mrtenz requested a review from a team as a code owner October 8, 2024 09:18
FrederikBolding
FrederikBolding previously approved these changes Oct 8, 2024
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.43%. Comparing base (e5aeb16) to head (888d91b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2808   +/-   ##
=======================================
  Coverage   94.43%   94.43%           
=======================================
  Files         483      483           
  Lines       10300    10302    +2     
  Branches     1566     1566           
=======================================
+ Hits         9727     9729    +2     
  Misses        573      573           

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

@Mrtenz Mrtenz merged commit a80db22 into main Oct 8, 2024
166 checks passed
@Mrtenz Mrtenz deleted the mrtenz/is-snap-id branch October 8, 2024 09:33
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