mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
core: bug fix
This commit is contained in:
1 parent
2eb89b7156
commit
930ce4e634
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "4.0.13",
|
||||
"version": "4.0.14",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/plugin-api",
|
||||
"module": "src/plugin-api",
|
||||
|
||||
@@ -399,9 +399,9 @@ export class ProblemDetailHandler extends ContestDetailBaseHandler {
|
||||
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]}"`;
|
||||
return `=\\"./${this.pdoc.docId}/file/${info[1]}${info[1].includes('?') ? '&' : '?'}tid=${args[1]}\\"`;
|
||||
});
|
||||
} else {
|
||||
this.response.body.pdoc.content = this.response.body.pdoc.content
|
||||
|
||||
Reference in new issue
Block a user