mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
core: fix problem_files handle
This commit is contained in:
1 parent
39300f26e5
commit
aac478f787
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "3.1.26",
|
||||
"version": "3.1.27",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -324,7 +324,7 @@ export class ProblemDetailHandler extends ProblemHandler {
|
||||
const info = str.match(/\(file:\/\/(.+?)\)/);
|
||||
return `(./${this.pdoc.docId}/file/${info[1]}${info[1].includes('?') ? '&' : '?'}tid=${args[1]})`;
|
||||
})
|
||||
.replace(/="file:\/\//g, (str) => {
|
||||
.replace(/="file:\/\/(.+?)"/g, (str) => {
|
||||
const info = str.match(/="file:\/\/(.+?)"/);
|
||||
return `="./${this.pdoc.docId}/file/${info[1]}${info[1].includes('?') ? '&' : '?'}tid=${args[1]}"`;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user