We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28445af commit f973b03Copy full SHA for f973b03
src/index.ts
@@ -235,7 +235,8 @@ async function init() {
235
const rawGithubPath = await textPrompt('GitHub path (optional)')
236
const githubPath = rawGithubPath.replace(/^(https:\/\/github.com\/|\/)/, '')
237
238
- if (rawGithubPath && !/^[^\/]+\/[^\/]+$/.test(githubPath)) {
+ // We don't need to be strict here, so long as it won't break the generated files
239
+ if (rawGithubPath && !/^[\w-]+\/[\w-.]+$/.test(githubPath)) {
240
console.log('Invalid GitHub path: ' + rawGithubPath)
241
process.exit(1)
242
}
0 commit comments