Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #297 from bardurc/patch-2
Browse files Browse the repository at this point in the history
🐛 Fix community mention regex
  • Loading branch information
lifenautjoe authored Jun 5, 2019
2 parents 144cd76 + 3f22568 commit 94d8117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/widgets/theming/smart_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ final _usernameRegex = RegExp(r"(?:[^A-Za-u0-9]|^)(@[A-Za-z0-9](([A-Za-z0-9]|[._

// Same idea as inner part of above regex, but only _ is allowed as special character
final _communityNameRegex =
RegExp(r"(/c/([A-Za-z0-9]|[_](?![_])){1,30})(?=\b|$)", caseSensitive: false);
RegExp(r"((?:(?<=\s)|^)/c/([A-Za-z0-9]|[_](?![_])){1,30})(?=\b|$)", caseSensitive: false);

class SmartMatch {
final SmartTextElement span;
Expand Down

0 comments on commit 94d8117

Please sign in to comment.