Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},

/**
Expand Down Expand Up @@ -108,4 +108,4 @@ const common_functions = {
}
}

export { common_functions }
export { common_functions }