Skip to content

Commit f346616

Browse files
committed
Allow filenames to start with _.
1 parent 04ab1c8 commit f346616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Service/SubmissionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
class SubmissionService
3636
{
37-
final public const FILENAME_REGEX = '/^[a-zA-Z0-9][a-zA-Z0-9+_\.-]*$/';
37+
final public const FILENAME_REGEX = '/^[a-zA-Z0-9_][a-zA-Z0-9+_\.-]*$/';
3838
final public const PROBLEM_RESULT_MATCHSTRING = ['@EXPECTED_RESULTS@: ', '@EXPECTED_SCORE@: '];
3939
final public const PROBLEM_RESULT_REMAP = [
4040
'ACCEPTED' => 'CORRECT',

0 commit comments

Comments
 (0)