improve favorites page

This commit is contained in:
nyne
2024-10-18 13:07:57 +08:00
parent 30b3256eec
commit 700630e317
6 changed files with 221 additions and 76 deletions

View File

@@ -56,7 +56,7 @@ extension TagsTranslation on String{
String get translateTagsToCN => _translateTags(this);
static String translateTag(String tag) {
if(tag.contains(':')) {
if(tag.contains(':') && tag.indexOf(':') == tag.lastIndexOf(':')) {
var [namespace, text] = tag.split(':');
return translationTagWithNamespace(text, namespace);
} else {