Skip to content

Commit 976e7d0

Browse files
committed
added space as a valid character in input validation for repo name. resolves #39
1 parent a85378e commit 976e7d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

API/addRepoApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function addRepoHandler(
4545
throw new Error("Invalid clone URL string!");
4646
}
4747

48-
if (repoName.match(/[^a-zA-Z0-9-_.]/gi)) {
48+
if (repoName.match(/[^a-zA-Z0-9-_.\\s]/gi)) {
4949
throw new Error("Invalid repo name string!");
5050
}
5151

0 commit comments

Comments
 (0)