Skip to content

Commit

Permalink
swudb regex link change (#131)
Browse files Browse the repository at this point in the history
- Edited the deck regex to work as currentbast does.
  • Loading branch information
CheBato authored Feb 26, 2025
1 parent 5baeacc commit 1dd6271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/swudbdeck/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function GET(req: Request) {
}
}
else if (deckLink.includes('swudb.com')) {
const match = deckLink.match(/\/deck\/(?:view\/)?([^/?]+)/);
const match = deckLink.match(/\/([^\/]+)\/?$/);
const deckId = match ? match[1] : null;
if(deckId != null) deckIdentifier = deckId;
deckSource = DeckSource.SWUDB;
Expand Down

0 comments on commit 1dd6271

Please sign in to comment.