1
0
mirror of https://github.com/GitJournal/GitJournal.git synced 2025-07-13 22:53:45 +08:00

fixed git-clone-url-regex for dash-domains

This commit is contained in:
fbartnitzek
2019-11-28 23:03:27 +01:00
committed by Vishesh Handa
parent fddefa3ff3
commit 6a9fe72e8d

@ -58,7 +58,7 @@ class GitCloneUrlPageState extends State<GitCloneUrlPage> {
return 'Only SSH urls are currently accepted';
}
RegExp regExp = RegExp(r"[a-zA-Z0-9.]+@[a-zA-Z0-9.]+:.+");
RegExp regExp = RegExp(r"[a-zA-Z0-9.]+@[a-zA-Z0-9.-]+:.+");
if (!regExp.hasMatch(value)) {
return "Invalid Input";
}