mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: export HomeHandler
This commit is contained in:
1 parent
8bb072a5a4
commit
b13bf24031
5 files changed
+6
-6
No files matched your search
@@ -20,8 +20,8 @@ function parseParameters(fn: Function) {
|
||||
.replace(COMMENTS, '')
|
||||
.replace(ARR, '');
|
||||
const result = code.slice(code.indexOf('(') + 1, code.indexOf(')'))
|
||||
.match(/([^,]+)/g).map((i) => i.trim());
|
||||
return result === null ? [] : result;
|
||||
.match(/([^,]+)/g)?.map((i) => i.trim());
|
||||
return result ?? [];
|
||||
}
|
||||
|
||||
async function runScript(name: string, arg: any) {
|
||||
|
||||
Reference in new issue
Block a user