mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01: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
@@ -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