mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-29 17:39:27 +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],
|
autofillHints: const [AutofillHints.url],
|
||||||
required: true,
|
required: true,
|
||||||
validator: (value, label) {
|
validator: (value, label) {
|
||||||
if (Uri.tryParse(value!) == null) {
|
if (!value!.contains(RegExp(r'https?:\/\/'))) {
|
||||||
return '$label must be a valid URL';
|
return '$label must be a valid URL';
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user