mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-20 17:53:46 +02:00
Minor form validation fix
This commit is contained in:
@@ -53,11 +53,12 @@ class GitHub extends AppSource {
|
||||
additionalValidators: [
|
||||
(value) {
|
||||
try {
|
||||
if (Uri.parse(
|
||||
'https://${value}/api.github.com',
|
||||
).scheme.isNotEmpty) {
|
||||
if (value != null && Uri.parse(value).scheme.isNotEmpty) {
|
||||
throw true;
|
||||
}
|
||||
if (value != null) {
|
||||
Uri.parse('https://${value}/api.github.com');
|
||||
}
|
||||
} catch (e) {
|
||||
return tr('invalidInput');
|
||||
}
|
||||
|
Reference in New Issue
Block a user