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