From ee615097e7665fb3b72d226e24a89a8f48bc99c3 Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Fri, 27 Sep 2019 18:32:38 +0800 Subject: [PATCH] fix: limit to ascii --- lib/widgets/text_contains_organization.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/text_contains_organization.dart b/lib/widgets/text_contains_organization.dart index 29a957e..476a88c 100644 --- a/lib/widgets/text_contains_organization.dart +++ b/lib/widgets/text_contains_organization.dart @@ -10,7 +10,7 @@ class TextContainsOrganization extends StatelessWidget { TextContainsOrganization(this.text, {this.style, this.overflow = TextOverflow.clip}); - static final _reg = RegExp(r'@\S+'); + static final _reg = RegExp(r'@[\x00-\x7F]+'); @override Widget build(BuildContext context) {