From d89a593e6ccd3dfe64c3cbea51958791ba524932 Mon Sep 17 00:00:00 2001 From: Cheryl Date: Fri, 28 Jul 2023 11:06:57 -0700 Subject: [PATCH] Upgrade to 7.2.19 --- CHANGELOG.md | 3 +++ lib/src/models/rules/insert.dart | 3 +-- lib/src/widgets/toolbar.dart | 1 - pubspec.yaml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d1656cc..c8e2cbf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# [7.2.19] +- Feat/link regexp. + # [7.2.18] - Fix paste block text in words apply same style. diff --git a/lib/src/models/rules/insert.dart b/lib/src/models/rules/insert.dart index b07570cb..b8297411 100644 --- a/lib/src/models/rules/insert.dart +++ b/lib/src/models/rules/insert.dart @@ -329,8 +329,7 @@ class AutoFormatMultipleLinksRule extends InsertRule { // http://www.example.com/?action=birds&brass=apparatus // https://example.net/ // URL generator tool (https://www.randomlists.com/urls) is used. - static const _linkPattern = - r'^https?:\/\/[\w\-]+(\.[\w\-]+)*(:\d+)?(\/.*)?$'; + static const _linkPattern = r'^https?:\/\/[\w\-]+(\.[\w\-]+)*(:\d+)?(\/.*)?$'; static final linkRegExp = RegExp(_linkPattern, caseSensitive: false); @override diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index 5d103590..f908aa17 100644 --- a/lib/src/widgets/toolbar.dart +++ b/lib/src/widgets/toolbar.dart @@ -157,7 +157,6 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { /// Validate the legitimacy of hyperlinks RegExp? linkRegExp, - Key? key, }) { final isButtonGroupShown = [ diff --git a/pubspec.yaml b/pubspec.yaml index 31ad24f6..0a359bb4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor supporting mobile and web -version: 7.2.18 +version: 7.2.19 homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill