stringMatchMap should have option to contain string or exact word match
Closed this issue · 1 comments
aiyubaarav commented
Example :
For the text 'rainbon rainbontt' if i added string match map {rainbon : someStyle, rainbontt : : someStyle}
- someStyle applied on rainbon only
When I debug on Match handler only comes to 1. rainbon not for rainbontt. So UI Look Like in screenshot
For temporary solution i added space in regex ::
RegExp(r'\b' + stringMatchMap!.keys.join(' |').toString() + r'+\b')
micazi commented
Thank you for your contribution, will look into it and integrate!