1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-17 10:48:50 +01:00

fix: limit to ascii

This commit is contained in:
Rongjian Zhang 2019-09-27 18:32:38 +08:00
parent 562c67dac0
commit ee615097e7

View File

@ -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) {