Skip to content

Commit

Permalink
Replace - with spaces for youtube searches (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinnoh authored Feb 21, 2025
1 parent 29cfc79 commit b8ae3d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/components/game/charts/ChartInfoFormat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,10 @@ function ChartInfoMiddle({
const gameConfig = GetGameConfig(game);

const diff = FormatDifficultySearch(chart, game);
const gameName = game === "ongeki" ? "オンゲキ" : gameConfig.name;
let search = `${gameName} ${song.title}`;
const gameName = game === "ongeki" ? "オンゲキ" : game === "maimaidx" ? "maimaiでらくす" : gameConfig.name;

Check failure on line 190 in client/src/components/game/charts/ChartInfoFormat.tsx

View workflow job for this annotation

GitHub Actions / test

Replace `·` with `⏎↹↹`
const formattedTitle = song.title.replace(/-/g, ' ');

Check failure on line 191 in client/src/components/game/charts/ChartInfoFormat.tsx

View workflow job for this annotation

GitHub Actions / test

Use the 'u' flag

Check failure on line 191 in client/src/components/game/charts/ChartInfoFormat.tsx

View workflow job for this annotation

GitHub Actions / test

Replace `'·'` with `"·"`

Check failure on line 192 in client/src/components/game/charts/ChartInfoFormat.tsx

View workflow job for this annotation

GitHub Actions / test

Delete `↹`
let search = `${gameName} ${formattedTitle}`;

if (diff !== null) {
search += ` ${diff}`;
Expand Down

0 comments on commit b8ae3d5

Please sign in to comment.