]> Sergey Matveev's repositories - path-extractor.git/blobdiff - validators.go
Add tests for file surrounded by `()`
[path-extractor.git] / validators.go
index b0501d6839111588ad0bfb4903b597ad41a0c77e..adc811666613f33c9c5c9aae31f6a390f2d66170 100644 (file)
@@ -67,7 +67,7 @@ func endsWithInvalidString(input string) bool {
 }
 
 func containsInvalidString(input string) bool {
-       invalidStrings := []string{"(", ")", "and/or", "origin/", "{", "}", "<", ">", "$", "*", "this."}
+       invalidStrings := []string{"()", "and/or", "origin/", "{", "}", "<", ">", "$", "*", "this."}
        for _, s := range invalidStrings {
                if strings.Contains(input, s) {
                        return true