goupviet / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

FileSystem.resolve doesn't resolve relative paths correct #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
base2.IO.FileSystem.resolve(
  "/C:/Users/5814/Projects/base2/src/utils/Combine/",
  "../../../lib/src/base2.js"
)
returns:
"/C:/Users/5814/Projects/base2/src/utils/lib/src/base2.js"

but expected:
"/C:/Users/5814/Projects/base2/lib/src/base2.js"

This is due to a global flag in the RELATIVE regular expression.

Original issue reported on code.google.com by doek...@gmail.com on 6 Aug 2007 at 11:33

GoogleCodeExporter commented 9 years ago
Solved in trunk/src, not in trunk/lib

Original comment by doek...@gmail.com on 6 Aug 2007 at 11:34

GoogleCodeExporter commented 9 years ago
Solved in trunk/lib

Original comment by doek...@gmail.com on 6 Aug 2007 at 11:56