Trim url before launch

pull/13/head
singerdmx 4 years ago
parent f051abd48d
commit fcf42fddba
  1. 2
      lib/widgets/editor.dart

@ -344,7 +344,7 @@ class _QuillEditorSelectionGestureDetectorBuilder
String link = segment.style.attributes[Attribute.link.key].value; String link = segment.style.attributes[Attribute.link.key].value;
if (getEditor().widget.readOnly && if (getEditor().widget.readOnly &&
link != null && link != null &&
urlRegExp.firstMatch(link) != null) { urlRegExp.firstMatch(link.trim()) != null) {
launchUrl(link); launchUrl(link);
} }
} }

Loading…
Cancel
Save