core: typo fix

pull/162/head
undefined 3 years ago
parent 5fed39c490
commit 6c776e230a

@ -1,6 +1,6 @@
{ {
"name": "hydrooj", "name": "hydrooj",
"version": "2.28.47", "version": "2.28.48",
"bin": "bin/hydrooj.js", "bin": "bin/hydrooj.js",
"main": "dist/loader.js", "main": "dist/loader.js",
"typings": "dist/loader.d.ts", "typings": "dist/loader.d.ts",

@ -169,7 +169,7 @@ class HomeworkDetailProblemHandler extends Handler {
// e.g. ![img](a.jpg) will navigate to ![img](./pid/file/a.jpg) // e.g. ![img](a.jpg) will navigate to ![img](./pid/file/a.jpg)
this.response.body.pdoc.content = this.response.body.pdoc.content this.response.body.pdoc.content = this.response.body.pdoc.content
.replace(/\(file:\/\//g, `(./${pid}/file/`) .replace(/\(file:\/\//g, `(./${pid}/file/`)
.reaplce(/="file:\/\//g, `="./${pid}/file/`); .replace(/="file:\/\//g, `="./${pid}/file/`);
} }
} }

Loading…
Cancel
Save