mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
fixed git-clone-url-regex for dash-domains
This commit is contained in:

committed by
Vishesh Handa

parent
fddefa3ff3
commit
6a9fe72e8d
@ -58,7 +58,7 @@ class GitCloneUrlPageState extends State<GitCloneUrlPage> {
|
|||||||
return 'Only SSH urls are currently accepted';
|
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)) {
|
if (!regExp.hasMatch(value)) {
|
||||||
return "Invalid Input";
|
return "Invalid Input";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user