mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: 修复一处category解析错误的问题
This commit is contained in:
1 parent
a3396d30a8
commit
a24c724fb7
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.28.30",
|
||||
"version": "2.28.31",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
Route, Handler, Types, param, post, route, query,
|
||||
} from '../service/server';
|
||||
|
||||
export const parseCategory = (value: string) => flatten(value.split('+').map((e) => e.split(','))).map((e) => e.trim());
|
||||
export const parseCategory = (value: string) => flatten(value.replace(/,/g, ',').split('+').map((e) => e.split(','))).map((e) => e.trim());
|
||||
export const parsePid = (value: string) => (isSafeInteger(value) ? +value : value);
|
||||
|
||||
export class ProblemHandler extends Handler {
|
||||
|
||||
Reference in new issue
Block a user