]> Sergey Matveev's repositories - path-extractor.git/blobdiff - validators.go
Shouldn't match //
[path-extractor.git] / validators.go
index 2ed2a880065e7d97e9f5d6e64b3c724edeeb71f4..042862c2c77c131db800d58a96e7152d50758931 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