-
Notifications
You must be signed in to change notification settings - Fork 26
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
Speed up check - early checks #809
Conversation
vmhost/contexts/validator.go
Outdated
return err | ||
} | ||
|
||
errInvalidName := fmt.Errorf("%w: %s", vmhost.ErrInvalidFunctionName, functionName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe %x
for the function name? As it covers the situation where there are not ASCII characters involved
@@ -78,9 +92,6 @@ func (validator *wasmValidator) verifyValidFunctionName(functionName string) err | |||
if !validCharactersOnly(functionName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
the list to be checked is "abcdefghijklmnopqrstuvwxyz0123456789_"
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #809 +/- ##
==========================================
+ Coverage 42.06% 42.10% +0.03%
==========================================
Files 49 49
Lines 9221 9230 +9
==========================================
+ Hits 3879 3886 +7
- Misses 4895 4896 +1
- Partials 447 448 +1 ☔ View full report in Codecov by Sentry. |
No description provided.