瀏覽代碼

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

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
Solomon Hykes 11 年之前
父節點
當前提交
5c14c3ada5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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