Make link match regex case insensitive

pull/895/head
X Code 3 years ago
parent 81720861b2
commit a51327ba6f
  1. 2
      lib/src/models/rules/insert.dart

@ -332,7 +332,7 @@ class AutoFormatMultipleLinksRule extends InsertRule {
// URL generator tool (https://www.randomlists.com/urls) is used.
static const _linkPattern =
r'(https?:\/\/|www\.)[\w-\.]+\.[\w-\.]+(\/([\S]+)?)?';
static final linkRegExp = RegExp(_linkPattern);
static final linkRegExp = RegExp(_linkPattern, caseSensitive: false);
@override
Delta? applyRule(

Loading…
Cancel
Save