utils: add output pattern

This commit is contained in:
无限UCW committed 2022-07-31 18:28:20 +08:00
1 parent f1e4d896b9
commit 614eefcb31
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -196,7 +196,10 @@ const SubtaskMatcher: MatchRule[] = [
},
{
regex: /^([^\d]*)([0-9]+)([-_])([0-9]+).in$/,
output: [(a) => `${a[1] + a[2]}${a[3]}${a[4]}.out`],
output: [
(a) => `${a[1] + a[2]}${a[3]}${a[4]}.out`,
(a) => `${a[1] + a[2]}${a[3]}${a[4]}.ans`,
],
id: (a) => +a[4],
subtask: (a) => +a[2],
preferredScorerType: 'min',
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/utils",
"version": "1.3.2",
"version": "1.3.3",
"description": "hydrooj utils",
"main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git",