From ab34c3f920a5a20a284e67ebbc3dc53df89e00f6 Mon Sep 17 00:00:00 2001 From: actboy168 Date: Mon, 26 Feb 2024 11:17:59 +0800 Subject: platform.OS -> platform.os --- script/file-uri.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/file-uri.lua') diff --git a/script/file-uri.lua b/script/file-uri.lua index 8a075f7e..192f3ab5 100644 --- a/script/file-uri.lua +++ b/script/file-uri.lua @@ -25,7 +25,7 @@ local m = {} ---@return uri uri function m.encode(path) local authority = '' - if platform.OS == 'Windows' then + if platform.os == 'windows' then path = path:gsub('\\', '/') end @@ -82,7 +82,7 @@ function m.decode(uri) else value = path end - if platform.OS == 'Windows' then + if platform.os == 'windows' then value = value:gsub('/', '\\') end return value -- cgit v1.2.3