mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix contest image display for html
This commit is contained in:
1 parent
930ce4e634
commit
27bf54ed34
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "4.0.14",
|
||||
"version": "4.0.15",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/plugin-api",
|
||||
"module": "src/plugin-api",
|
||||
|
||||
@@ -400,7 +400,7 @@ export class ProblemDetailHandler extends ContestDetailBaseHandler {
|
||||
return `="./${this.pdoc.docId}/file/${info[1]}${info[1].includes('?') ? '&' : '?'}tid=${args[1]}"`;
|
||||
})
|
||||
.replace(/=\\"file:\/\/(.+?)\\"/g, (str) => {
|
||||
const info = str.match(/=\\"file:\/\/(.+?)"/);
|
||||
const info = str.match(/=\\"file:\/\/(.+?)\\"/);
|
||||
return `=\\"./${this.pdoc.docId}/file/${info[1]}${info[1].includes('?') ? '&' : '?'}tid=${args[1]}\\"`;
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user