diff --git a/lib/github.js b/lib/github.js index c8db1fb..3135db4 100644 --- a/lib/github.js +++ b/lib/github.js @@ -56,13 +56,7 @@ export const isRepoPath = path => { return false } - const slashCount = path.split('/').length - 1 - - if (!slashCount || slashCount > 1) { - return false - } - - return true + return /[^\s\\]\/[^\s\\]/g.test(path) } export const onGitHub = async (path, debug) => {