mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix "surprising path" error for paths like "K:"
This commit is contained in:
@@ -1175,7 +1175,7 @@ var toPosixPath = function (p, notAbsolute) {
|
||||
|
||||
var toDosPath = function (p, notAbsolute) {
|
||||
if (p[0] === '/' && ! notAbsolute) {
|
||||
if (! /^\/[A-Za-z]\//.test(p))
|
||||
if (! /^\/[A-Za-z](\/|$)/.test(p))
|
||||
throw new Error("Surprising path: " + p);
|
||||
// transform a previously windows path back
|
||||
// "/C/something" to "c:/something"
|
||||
|
||||
Reference in New Issue
Block a user