Explorar o código

pkg/dockerscript: '.' is not a special character

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
Solomon Hykes %!s(int64=11) %!d(string=hai) anos
pai
achega
5c14c3ada5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pkg/dockerscript/scanner/extra.go

+ 1 - 1
pkg/dockerscript/scanner/extra.go

@@ -14,7 +14,7 @@ func detectIdent(ch rune) bool {
 	if unicode.IsDigit(ch) {
 		return true
 	}
-	if strings.ContainsRune("_:/+-@%^", ch) {
+	if strings.ContainsRune("_:/+-@%^.", ch) {
 		return true
 	}
 	return false