We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95aa592 commit 653f6c5Copy full SHA for 653f6c5
webapp/src/Service/ExternalContestSourceService.php
@@ -530,7 +530,7 @@ protected function loadContest(): void
530
try {
531
// The base URL is the URL of the CCS API root.
532
// Proper is '^(.*\/)contests\/.*/', but PC^2 doesn't expose this (yet).
533
- if (preg_match('/^(.*\/)contest(s\/.*)/',
+ if (preg_match('/^(.*\/)contest(s\/.*)?/',
534
$this->source->getSource(), $matches) === 0) {
535
$this->loadingError = 'Cannot determine base URL. Did you pass a CCS API contest URL?';
536
$this->cachedContestData = null;
0 commit comments