mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 09:09:29 +01:00
Compare commits
2 Commits
1c76293559
...
889be2ff2c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
889be2ff2c | ||
|
|
52b51954aa |
@ -45,7 +45,7 @@ class SourcePage extends HookConsumerWidget {
|
||||
autofillHints: const [AutofillHints.url],
|
||||
required: true,
|
||||
validator: (value, label) {
|
||||
if (Uri.tryParse(value!) == null) {
|
||||
if (!value!.contains(RegExp(r'https?:\/\/'))) {
|
||||
return '$label must be a valid URL';
|
||||
}
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user