core: fix

This commit is contained in:
undefined committed 2021-09-17 18:15:52 +08:00
1 parent 54b7007b11
commit 12f2a4f2bb
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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];