diff --git a/functions/index.js b/functions/index.js index 5bb809a..4b9fe70 100644 --- a/functions/index.js +++ b/functions/index.js @@ -57,8 +57,8 @@ const common_functions = { isPathRelative(path) { if(typeof path !== 'string') return false; let isAbsolute = /^([A-Za-z]:|\.)/.test(path); - - return isAbsolute; + const isLinuxPath = /^\//.test(path); + return isAbsolute||isLinuxPath; }, /** @@ -108,4 +108,4 @@ const common_functions = { } } -export { common_functions } \ No newline at end of file +export { common_functions }