summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/require-path.lua2
-rw-r--r--script/workspace/workspace.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua
index c319cbad..1507183c 100644
--- a/script/workspace/require-path.lua
+++ b/script/workspace/require-path.lua
@@ -123,7 +123,7 @@ function mt:getRequireResultByPath(path)
cutedPath = currentPath:sub(pos)
head = currentPath:sub(1, pos - 1)
pos = currentPath:match('[/\\]+()', pos)
- if platform.OS == 'Windows' then
+ if platform.os == 'windows' then
searcher = searcher :gsub('[/\\]+', '\\')
else
searcher = searcher :gsub('[/\\]+', '/')
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index 97518e84..fe7c6c15 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -188,7 +188,7 @@ function m.getNativeMatcher(scp)
local matcher = glob.gitignore(pattern, {
root = scp.uri and furi.decode(scp.uri),
- ignoreCase = platform.OS == 'Windows',
+ ignoreCase = platform.os == 'windows',
}, globInteferFace)
scp:set('nativeMatcher', matcher)
@@ -236,7 +236,7 @@ function m.getLibraryMatchers(scp)
local nPath = fs.absolute(fs.path(path)):string()
local matcher = glob.gitignore(pattern, {
root = path,
- ignoreCase = platform.OS == 'Windows',
+ ignoreCase = platform.os == 'windows',
}, globInteferFace)
matchers[#matchers+1] = {
uri = furi.encode(nPath),