Skip to content

Commit

Permalink
generators schema: remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
thorehusfeldt committed Nov 29, 2024
1 parent 05f6684 commit 2d24395
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions support/schemas/generators.cue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package problemformat
import "struct"
import "strings"

// Directory names, as well as names of testcases and generators are
// alphanumerical with internal underscores and hyphens; such as
// Directory names, as well as names of testcases and generators are
// alphanumerical with internal underscores and hyphens; such as
// "huge", "make_tree", "3", "a", or "connected_graph-01";
// but not "huge_" or "-2" or "bapc.24" or "".
let dirname = "[A-Za-z0-9]([A-Za-z0-9_-]{0,253}[A-Za-z0-9])?"
Expand All @@ -17,7 +17,7 @@ name: =~"^\(dirname)$"
// Directory paths are separated by / and do not start with a slash
dirpath: =~"^(\(dirname)/)*\(dirname)$"

// Filenames are names, but have length at least 2 and can also
// Filenames are names, but have length at least 2 and can also
// contain '.' such as "good-solution_02.py" or "1.in"
let filename = "[A-Za-z0-9][A-Za-z0-9_.-]{0,253}[A-Za-z0-9]"
filepath: =~"^/?(\(dirname)/)*\(filename)$"
Expand Down

0 comments on commit 2d24395

Please sign in to comment.