2000calories / flutter_easy_rich_text

The EasyRichText widget provides an easy way to use RichText.
https://pub.dev/packages/easy_rich_text
MIT License
80 stars 33 forks source link

FormatException: Unmatched ')'(@一瞬流星:)) #16

Closed zhongxuerui521 closed 3 years ago

zhongxuerui521 commented 3 years ago

FormatException when targetString contain special character in EasyRichTextPattern

0 new _RegExp (dart:core-patch/regexp_patch.dart:217)

-- 2 #1 new RegExp (dart:core-patch/regexp_patch.dart:27) 3 #2 EasyRichText.processStrList. (package:easy_rich_text/src/easy_rich_text.dart:214) 4 #3 ListMapView.forEach (dart:_internal/list.dart:242) 5 #4 EasyRichText.processStrList (package:easy_rich_text/src/easy_rich_text.dart:145) 6 #5 EasyRichText.build (package:easy_rich_text/src/easy_rich_text.dart:327) 7 #6 StatelessElement.build (package:flutter/src/widgets/framework.dart:4701)

2000calories commented 3 years ago

set hasSpecialCharacters: true,