mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-28 17:19:27 +01:00
Compare commits
No commits in common. "889be2ff2c91af1e6ffd2fb739e6bee4cf9dea9e" and "1c76293559e2c0c0b97001cfdc3a1ca76dda98e4" have entirely different histories.
889be2ff2c
...
1c76293559
@ -45,7 +45,7 @@ class SourcePage extends HookConsumerWidget {
|
||||
autofillHints: const [AutofillHints.url],
|
||||
required: true,
|
||||
validator: (value, label) {
|
||||
if (!value!.contains(RegExp(r'https?:\/\/'))) {
|
||||
if (Uri.tryParse(value!) == null) {
|
||||
return '$label must be a valid URL';
|
||||
}
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user