mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-14 01:24:54 +00:00
fix: spelling
This commit is contained in:
parent
6d3b81fc61
commit
f8c8932866
1 changed files with 3 additions and 3 deletions
|
@ -100,8 +100,8 @@ func (e *ParseError) Error() string {
|
||||||
return e.Err.Error()
|
return e.Err.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractCommaSeperatedValues will extract the values matching the key.
|
// ExtractCommaSeparatedValues will extract the values matching the key.
|
||||||
func ExtractCommaSeperatedValues(source, prefix string) []string {
|
func ExtractCommaSeparatedValues(source, prefix string) []string {
|
||||||
parts := strings.Split(source, ",")
|
parts := strings.Split(source, ",")
|
||||||
values := make([]string, 0)
|
values := make([]string, 0)
|
||||||
for _, part := range parts {
|
for _, part := range parts {
|
||||||
|
@ -117,7 +117,7 @@ func ExtractSignatures(signature, prefix string) []string {
|
||||||
// If there are multiple possible matches, let the comma seperated extractor
|
// If there are multiple possible matches, let the comma seperated extractor
|
||||||
// do it's work.
|
// do it's work.
|
||||||
if strings.Contains(signature, ",") {
|
if strings.Contains(signature, ",") {
|
||||||
return ExtractCommaSeperatedValues(signature, prefix)
|
return ExtractCommaSeparatedValues(signature, prefix)
|
||||||
}
|
}
|
||||||
|
|
||||||
// There were no commas, so just trim the prefix (if it even exists) and
|
// There were no commas, so just trim the prefix (if it even exists) and
|
||||||
|
|
Loading…
Add table
Reference in a new issue