提交 e143c96f 编写于 作者: M mindless

[FIXED HUDSON-4894] update DRIVE_PATTERN so a path like C:\ is recognized as absolute


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23832 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b2dc60b2
......@@ -220,7 +220,7 @@ public final class FilePath implements Serializable {
return rel.startsWith("/") || DRIVE_PATTERN.matcher(rel).matches();
}
private static final Pattern DRIVE_PATTERN = Pattern.compile("[A-Za-z]:\\\\.+");
private static final Pattern DRIVE_PATTERN = Pattern.compile("[A-Za-z]:\\\\.*");
/**
* Checks if the remote path is Unix.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册