소스 검색

UNC paths are absolute paths as well (#6061)

derRaab 8 년 전
부모
커밋
1c86fc873a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      std/haxe/io/Path.hx

+ 1 - 0
std/haxe/io/Path.hx

@@ -301,6 +301,7 @@ class Path {
 	public static function isAbsolute ( path : String ) : Bool {
 		if (StringTools.startsWith(path, '/')) return true;
 		if (path.charAt(1) == ':') return true;
+		if (StringTools.startsWith(path, '\\\\')) return true;
 		return false;
 	}