Crazelu / fluttertagger

A Flutter package that allows for the extension of TextFields to provide tagging capabilities (e.g @ user mentions and # hashtags).
MIT License
38 stars 16 forks source link

seems only support English text #7

Closed Amber916Young closed 3 months ago

Amber916Young commented 3 months ago

The English text is working, but other languages cannot be detected.

Crazelu commented 3 months ago

@Amber916Young can you describe the issue better and perhaps include some code to reproduce your issue?

Amber916Young commented 3 months ago

Hi, Thank you for your prompt response. When I input #hello, the widget correctly detects the keyword "hello". However, if I input #尼hello, it seems fails to extract the tag "尼hello".

Crazelu commented 3 months ago

This is probably because of the default regex pattern for allowed search characters (^[a-zA-Z-]*$') which only includes letters of the English alphabet. You can allow more characters by specifying searchRegex for the FlutterTagger widget.

Amber916Young commented 3 months ago

yes, I just noticed that parameter, anyway, thanks for replying!

Crazelu commented 3 months ago

Anytime!

Closing this issue now since it is resolved. Please re-open if you still have related issues.