core: typo fix

This commit is contained in:
undefined committed 2021-06-21 18:40:13 +08:00
1 parent 5fed39c490
commit 6c776e230a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.28.47",
"version": "2.28.48",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",
+1 -1
View File
@@ -169,7 +169,7 @@ class HomeworkDetailProblemHandler extends Handler {
// e.g. ![img](a.jpg) will navigate to ![img](./pid/file/a.jpg)
this.response.body.pdoc.content = this.response.body.pdoc.content
.replace(/\(file:\/\//g, `(./${pid}/file/`)
.reaplce(/="file:\/\//g, `="./${pid}/file/`);
.replace(/="file:\/\//g, `="./${pid}/file/`);
}
}