regex typo fix

This commit is contained in:
Filip Krawczyk 2022-06-28 01:18:45 +02:00
parent 6f271ffc91
commit 81fadffa14
1 changed files with 2 additions and 2 deletions

View File

@ -152,8 +152,8 @@ class AddLinkDialog extends HookWidget {
final String selection;
AddLinkDialog(this.selection)
: title = selection.startsWith('http?s://') ? '' : selection,
url = selection.startsWith('http?s://') ? selection : '';
: title = selection.startsWith('https?://') ? '' : selection,
url = selection.startsWith('https?://') ? selection : '';
@override
Widget build(BuildContext context) {