Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: https://codeforces.com/contest/340/problem/A is not a URL for problem in Codeforces #109

Closed
tamuhey opened this issue Jan 21, 2021 · 1 comment · Fixed by #110
Closed

Comments

@tamuhey
Copy link
Contributor

tamuhey commented Jan 21, 2021

Run cargo compete new 340 in codeforces directory, got the error:

error: `https://codeforces.com/contest/340/problem/A` is not a URL for problem in Codeforces
@qryxip
Copy link
Owner

qryxip commented Jan 21, 2021

Thank you for reporting. This issue is going to be fixed in qryxip/snowchains#118 qryxip/snowchains#119.

-    let caps = static_regex!(r"\Acontest/([0-9]{1,5})/problem/(.*)\z")
+    let caps = static_regex!(r"\A/contest/([0-9]{1,5})/problem/(.*)\z")
         .captures(&url.path())
         .with_context(|| format!("`{}` is not a URL for problem in Codeforces", url))?;

@bors bors bot closed this as completed in 564910c Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants