Skip to content

Commit

Permalink
Merge pull request santa112358#3 from Ch4rl3B/feature/dotformatch
Browse files Browse the repository at this point in the history
adding dot to the regexp for matchin user.name expressions in at and hashtag
  • Loading branch information
Ch4rl3B committed Mar 17, 2023
2 parents 888c8e2 + 21e58c2 commit 4a5b9ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class _MyAppState extends State<MyApp> {
basicStyle: TextStyle(fontSize: 22, color: Colors.black),
decoratedStyle: TextStyle(fontSize: 22, color: Colors.red),
textAlign: TextAlign.center,
decorateAtSign: true,
onTap: (text) {
print(text);
},
Expand All @@ -36,6 +37,7 @@ class _MyAppState extends State<MyApp> {
basicStyle: TextStyle(fontSize: 15, color: Colors.black),
decoratedStyle: TextStyle(fontSize: 15, color: Colors.blue),
keyboardType: TextInputType.multiline,
decorateAtSign: true,

/// Called when detection (word starts with #, or # and @) is being typed
onDetectionTyped: (text) {
Expand Down
2 changes: 1 addition & 1 deletion lib/detector/hashtag_regular_expression.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const _symbols = '·・ー_';
const _symbols = '·・ー_.';

const _numbers = '0-90-9';

Expand Down

0 comments on commit 4a5b9ea

Please sign in to comment.