Skip to content

Commit

Permalink
fix: git regex
Browse files Browse the repository at this point in the history
  • Loading branch information
songwongtp committed Aug 21, 2024
1 parent 95f7a26 commit f8fd0a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const WasmVerifySubmitForm = ({
message: "Please provide the source code’s GitHub commit URL",
})
.regex(
/^https:\/\/github\.com\/.+$/,
/^https:\/\/github\.com\/[^/]+\/[^/]+$/,
"Please enter GitHub URL in format: https://github.com/username/repository"
)
.url({
Expand Down

0 comments on commit f8fd0a2

Please sign in to comment.