codeforces: normalize contest ID to numeric form #306

Closed
opened 2026-03-05 18:21:37 +00:00 by barrettruth · 0 comments
barrettruth commented 2026-03-05 18:21:37 +00:00

Users may pass a Codeforces contest in non-canonical forms — a full URL, a round name, or a gym ID. The contest ID should be normalized to just the numeric form (e.g. `1933`) before it is stored or used.

Apply normalization in `parse_command` or `setup_contest` before any cache lookup or scraper call. Common cases to handle:

Users may pass a Codeforces contest in non-canonical forms — a full URL, a round name, or a gym ID. The contest ID should be normalized to just the numeric form (e.g. \`1933\`) before it is stored or used. Apply normalization in \`parse_command\` or \`setup_contest\` before any cache lookup or scraper call. Common cases to handle: - \`https://codeforces.com/contest/1933\` → \`1933\` - \`https://codeforces.com/contest/1933/problem/A\` → \`1933\`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/cp.nvim#306
No description provided.