Skip to content

Commit

Permalink
ygo-query: fix print_yp_link()
Browse files Browse the repository at this point in the history
  • Loading branch information
salix5 committed Dec 19, 2023
1 parent f8f777b commit eee2e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ygo-query.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ export function print_db_link(cid, request_locale) {
}

export function print_yp_link(id) {
return `https://yugipedia.com/wiki/${id}`;
return `https://yugipedia.com/wiki/${id.toString().padStart(8, '0')}`;
}

export function print_qa_link(cid) {
Expand Down

0 comments on commit eee2e41

Please sign in to comment.