mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +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",
|
||||
"version": "2.36.0",
|
||||
"version": "2.36.1",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -294,8 +294,8 @@ class ProblemImportSYZOJHandler extends Handler {
|
||||
domainId: string, url: string, targetPid: string, hidden = false,
|
||||
prefix: string, start: number, end: number,
|
||||
) {
|
||||
if (/^(.+)(\d+)\.\.(\d+)$/.test(url)) {
|
||||
const res = /^(.+)(\d+)\.\.(\d+)$/.exec(url)!;
|
||||
if (/\/(\d+)\.\.(\d+)$/.test(url)) {
|
||||
const res = /\/(\d+)\.\.(\d+)$/.exec(url)!;
|
||||
prefix = res[1];
|
||||
start = +res[2];
|
||||
end = +res[3];
|
||||
|
||||
Reference in new issue
Block a user