Skip to content

Commit

Permalink
fix: fix fdx/fdx+ parsing for new DXNET
Browse files Browse the repository at this point in the history
  • Loading branch information
littlebtc authored Jan 18, 2024
1 parent 0f5024b commit 6f469e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@otohime-site/parser",
"version": "24.1.0",
"version": "24.1.1",
"license": "MIT",
"type": "module",
"types": "index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/dx_intl/scores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const parseScores = (
}
}
const syncMatches = (currFlagImg.getAttribute("src") ?? "").match(
/(sync|fs|fsp|fsd|fsdp)\.png/
/(sync|fs|fsp|fsd|fsdp|fdx|fdxp)\.png/
)
if (syncMatches !== null) {
switch (syncMatches[1]) {
Expand All @@ -168,8 +168,10 @@ const parseScores = (
case "fsp":
return { ...prevFlags, sync_flag: "fs+" }
case "fsd":
case "fdx":
return { ...prevFlags, sync_flag: "fdx" }
case "fsdp":
case "fdxp":
return { ...prevFlags, sync_flag: "fdx+" }
}
}
Expand Down

0 comments on commit 6f469e4

Please sign in to comment.