mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: import.syzoj: fix bulk operation
This commit is contained in:
1 parent
5c97bbf1ba
commit
54b7007b11
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.36.0",
|
"version": "2.36.1",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -294,8 +294,8 @@ class ProblemImportSYZOJHandler extends Handler {
|
|||||||
domainId: string, url: string, targetPid: string, hidden = false,
|
domainId: string, url: string, targetPid: string, hidden = false,
|
||||||
prefix: string, start: number, end: number,
|
prefix: string, start: number, end: number,
|
||||||
) {
|
) {
|
||||||
if (/^(.+)(\d+)\.\.(\d+)$/.test(url)) {
|
if (/\/(\d+)\.\.(\d+)$/.test(url)) {
|
||||||
const res = /^(.+)(\d+)\.\.(\d+)$/.exec(url)!;
|
const res = /\/(\d+)\.\.(\d+)$/.exec(url)!;
|
||||||
prefix = res[1];
|
prefix = res[1];
|
||||||
start = +res[2];
|
start = +res[2];
|
||||||
end = +res[3];
|
end = +res[3];
|
||||||
|
|||||||
Reference in new issue
Block a user