mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-05-29 15:26:00 -05:00
fix: handle emoji characters
This commit is contained in:
@@ -52,7 +52,12 @@ class _TrendingScreenState extends State<TrendingScreen> {
|
||||
?.innerHtml
|
||||
?.replaceFirst(RegExp(r'^[\s\S]*span>'), '')
|
||||
?.trim(),
|
||||
'description': item.children[2].querySelector('p')?.innerHtml?.trim(),
|
||||
'description': item.children[2]
|
||||
.querySelector('p')
|
||||
?.innerHtml
|
||||
?.trim()
|
||||
?.replaceAll(RegExp(r'<g-emoji.*?>'), '')
|
||||
?.replaceAll(RegExp(r'</g-emoji>'), ''),
|
||||
'stargazers': {
|
||||
'totalCount': item.children[3]
|
||||
.querySelectorAll('a')[0]
|
||||
|
||||
Reference in New Issue
Block a user