Browse Source

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

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
Solomon Hykes 11 năm trước cách đây
mục cha
commit
5c14c3ada5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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