diff --git a/vars/builder_aliases.go b/vars/builder_aliases.go index cecfb84..616c83b 100644 --- a/vars/builder_aliases.go +++ b/vars/builder_aliases.go @@ -7,6 +7,9 @@ import ( // BuilderAliases maps builder name to a function that returns if an input string (extra_data) is an alias var BuilderAliases = map[string]func(string) bool{ + "penguinbuild.org": func(in string) bool { + return strings.Contains(in, "penguinbuild.org") + }, "builder0x69": func(in string) bool { return strings.Contains(in, "builder0x69") }, diff --git a/vars/builder_aliases_test.go b/vars/builder_aliases_test.go index 2382f8d..17e345c 100644 --- a/vars/builder_aliases_test.go +++ b/vars/builder_aliases_test.go @@ -7,6 +7,7 @@ import ( ) func TestBuilderAliases(t *testing.T) { + require.Equal(t, "penguinbuild.org", BuilderNameFromExtraData("@penguinbuild.org")) require.Equal(t, "foobar", BuilderNameFromExtraData("foobar")) require.Equal(t, "builder0x69", BuilderNameFromExtraData("@builder0x69")) require.Equal(t, "bob the builder", BuilderNameFromExtraData("s1e2xf"))