Skip to content

Commit 77b3f01

Browse files
committed
fix: platfrom is undefined
1 parent ea8ea39 commit 77b3f01

3 files changed

Lines changed: 2 additions & 14 deletions

File tree

dist/virtualfs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/virtualfs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/thirdparty/globmatch.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,6 @@ function Minimatch (pattern, options) {
157157
if (!options) options = {}
158158
pattern = pattern.trim()
159159

160-
// windows: need to use /, not \
161-
// On other platforms, \ is a valid (albeit bad) filename char.
162-
if (platform === "win32") {
163-
pattern = pattern.split("\\").join("/")
164-
}
165-
166160
// lru storage.
167161
// these things aren't particularly big, but walking down the string
168162
// and turning it into a regexp can get pretty costly.
@@ -844,12 +838,6 @@ function match (f, partial) {
844838

845839
var options = this.options
846840

847-
// windows: need to use /, not \
848-
// On other platforms, \ is a valid (albeit bad) filename char.
849-
if (platform === "win32") {
850-
f = f.split("\\").join("/")
851-
}
852-
853841
// treat the test path as a set of pathparts.
854842
f = f.split(slashSplit)
855843
if (options.debug) {

0 commit comments

Comments
 (0)