Skip to content

Commit

Permalink
feat: change "sync" to "s"
Browse files Browse the repository at this point in the history
  • Loading branch information
littlebtc committed Jan 16, 2024
1 parent a52164f commit 91ece78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dx_intl/scores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface ScoresParseEntryWithScore
extends ScoresParseEntryWithoutScore {
score: number
combo_flag: "" | "fc" | "fc+" | "ap" | "ap+"
sync_flag: "" | "sync" | "fs" | "fs+" | "fdx" | "fdx+"
sync_flag: "" | "s" | "fs" | "fs+" | "fdx" | "fdx+"
}

export type ScoresParseEntry =
Expand Down Expand Up @@ -138,7 +138,7 @@ const parseScores = (
const flagImages = [...curr.querySelectorAll("img.f_r").values()]
const flags = flagImages.reduce<{
combo_flag: "" | "fc" | "fc+" | "ap" | "ap+"
sync_flag: "" | "sync" | "fs" | "fs+" | "fdx" | "fdx+"
sync_flag: "" | "s" | "fs" | "fs+" | "fdx" | "fdx+"
}>(
(prevFlags, currFlagImg) => {
const comboMatches = (currFlagImg.getAttribute("src") ?? "").match(
Expand All @@ -162,7 +162,7 @@ const parseScores = (
if (syncMatches !== null) {
switch (syncMatches[1]) {
case "sync":
return { ...prevFlags, sync_flag: "sync" }
return { ...prevFlags, sync_flag: "s" }
case "fs":
return { ...prevFlags, sync_flag: "fs" }
case "fsp":
Expand Down

0 comments on commit 91ece78

Please sign in to comment.