Compare commits

...

2 Commits

Author SHA1 Message Date
chinosk 8c850ad7db
update submodule 2024-11-23 15:19:41 +00:00
chinosk 7bf429336b
fix build error, add card name suffixes match 2024-11-22 22:45:52 +00:00
4 changed files with 16 additions and 2 deletions

View File

@ -16,7 +16,7 @@ android {
minSdk 29
targetSdk 34
versionCode 4
versionName "v1.6.2"
versionName "v1.6.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {

3
app/lint.xml Normal file
View File

@ -0,0 +1,3 @@
<lint>
<issue id="ExtraTranslation" severity="ignore" />
</lint>

@ -1 +1 @@
Subproject commit 3a9344dea4bc295756a9e05f321da2b8fc26c875
Subproject commit df448152cfb55c528d66832b2470ff1c2277e980

View File

@ -521,6 +521,17 @@ namespace GakumasLocal::Local {
return false;
}
// 匹配升级卡名
if (auto plusPos = origText.find_last_not_of('+'); plusPos != std::string::npos) {
const auto noPlusText = origText.substr(0, plusPos + 1);
if (const auto iter = genericText.find(noPlusText); iter != genericText.end()) {
size_t plusCount = origText.length() - (plusPos + 1);
*newStr = iter->second + std::string(plusCount, '+');
return true;
}
}
// fmt 文本
auto fmtText = StringParser::ParseItems::parse(origText, false);
if (fmtText.isValid) {