Skip to content

Commit

Permalink
Update webapp/src/Service/ExternalContestSourceService.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj authored Feb 24, 2024
1 parent a36c11b commit ca6ad02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/Service/ExternalContestSourceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ protected function loadContest(): void
try {
// The base URL is the URL of the CCS API root.
// Proper is '^(.*\/)contests\/.*/', but PC^2 doesn't expose this (yet).
if (preg_match('/^(.*\/)contest(s\/.*/)?',
if (preg_match('/^(.*\/)contest(s\/.*)/',
$this->source->getSource(), $matches) === 0) {
$this->loadingError = 'Cannot determine base URL. Did you pass a CCS API contest URL?';
$this->cachedContestData = null;
Expand Down

0 comments on commit ca6ad02

Please sign in to comment.