@fangzhongya/utils 0.0.8-56 → 0.0.8-57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/basic/array/index.cjs +6 -6
- package/dist/basic/array/index.js +7 -7
- package/dist/basic/index.cjs +10 -9
- package/dist/basic/index.d.ts +2 -1
- package/dist/basic/index.js +9 -8
- package/dist/basic/string/index.cjs +8 -2
- package/dist/basic/string/index.d.ts +1 -0
- package/dist/basic/string/index.js +8 -2
- package/dist/basic/string/toFunction.cjs +9 -0
- package/dist/basic/string/toFunction.d.ts +11 -0
- package/dist/basic/string/toFunction.js +9 -0
- package/dist/{chunk-GH6ZVMB4.cjs → chunk-5PVXJUXQ.cjs} +7 -1
- package/dist/{chunk-7OV6BXIR.js → chunk-6GFRLMWT.js} +7 -1
- package/dist/chunk-HQQXOE5C.cjs +40 -0
- package/dist/{chunk-GPUB2ZYT.cjs → chunk-PLSXU4SH.cjs} +4 -4
- package/dist/chunk-RWZBP6BO.js +40 -0
- package/dist/{chunk-ZLCUSADU.cjs → chunk-SYXWQKOO.cjs} +5 -5
- package/dist/{chunk-MTWNNTNK.js → chunk-T26UPIIQ.js} +2 -2
- package/dist/{chunk-V3AYCU2W.js → chunk-ZQX2TYQB.js} +4 -4
- package/dist/css/index.cjs +10 -10
- package/dist/css/index.js +11 -11
- package/dist/html/index.cjs +1 -1
- package/dist/html/index.js +1 -1
- package/dist/{index-2077c615.d.ts → index-01c85047.d.ts} +1 -1
- package/dist/{index-eef2a16c.d.ts → index-1ab7ebf5.d.ts} +5 -0
- package/dist/index.cjs +31 -30
- package/dist/index.d.ts +3 -2
- package/dist/index.js +31 -30
- package/dist/judge/index.cjs +6 -6
- package/dist/judge/index.js +5 -5
- package/dist/judge/matchs.cjs +3 -3
- package/dist/judge/matchs.js +2 -2
- package/dist/load/index.cjs +3 -3
- package/dist/load/index.js +4 -4
- package/dist/urls/index.cjs +7 -7
- package/dist/urls/index.js +7 -7
- package/package.json +6 -1
- package/dist/{chunk-AXAVKIR3.cjs → chunk-AW3EGUGB.cjs} +2 -2
- package/dist/{chunk-NMA3RPU4.cjs → chunk-HIGE4NJ6.cjs} +5 -5
- package/dist/{chunk-WW6SKIVB.js → chunk-JILAGD3U.js} +6 -6
- package/dist/{chunk-MYS6DR74.js → chunk-KPTUKLT3.js} +6 -6
- package/dist/{chunk-LPDYEUMB.cjs → chunk-OA7HNGAO.cjs} +6 -6
- package/dist/{chunk-XCTPS2CO.js → chunk-PN4OFZGM.js} +3 -3
- package/dist/{chunk-NGQKVTCR.cjs → chunk-T22I7TJQ.cjs} +3 -3
- package/dist/{chunk-FRGDQOX4.js → chunk-T2QKEABG.js} +3 -3
- package/dist/{chunk-YTO2EFIT.js → chunk-VSSUU2KF.js} +9 -9
- package/dist/{chunk-XVNRSX7W.cjs → chunk-ZBNE6T3A.cjs} +8 -8
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-HIGE4NJ6.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGD3OA7GUcjs = require('../../chunk-GD3OA7GU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLG7MY5KLcjs = require('../../chunk-LG7MY5KL.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkAXMOZZCMcjs = require('../../chunk-AXMOZZCM.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkTCMJPIRMcjs = require('../../chunk-TCMJPIRM.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkT3FAFGFDcjs = require('../../chunk-T3FAFGFD.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkISHLY7WMcjs = require('../../chunk-ISHLY7WM.cjs');
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import "../../chunk-
|
|
2
|
-
import {
|
|
3
|
-
asyncMergeArray
|
|
4
|
-
} from "../../chunk-Q6FMBSK4.js";
|
|
5
|
-
import {
|
|
6
|
-
deleteArray
|
|
7
|
-
} from "../../chunk-D2WYYC5Y.js";
|
|
1
|
+
import "../../chunk-JILAGD3U.js";
|
|
8
2
|
import {
|
|
9
3
|
duplicateRemoval
|
|
10
4
|
} from "../../chunk-ZVBCHJA5.js";
|
|
@@ -14,6 +8,12 @@ import {
|
|
|
14
8
|
import {
|
|
15
9
|
toggleArray
|
|
16
10
|
} from "../../chunk-GOJN3OQ4.js";
|
|
11
|
+
import {
|
|
12
|
+
asyncMergeArray
|
|
13
|
+
} from "../../chunk-Q6FMBSK4.js";
|
|
14
|
+
import {
|
|
15
|
+
deleteArray
|
|
16
|
+
} from "../../chunk-D2WYYC5Y.js";
|
|
17
17
|
import {
|
|
18
18
|
isArray
|
|
19
19
|
} from "../../chunk-5PX3AFSC.js";
|
package/dist/basic/index.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-PLSXU4SH.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5PVXJUXQcjs = require('../chunk-5PVXJUXQ.cjs');
|
|
5
5
|
require('../chunk-L7FSHU27.cjs');
|
|
6
|
+
require('../chunk-HQQXOE5C.cjs');
|
|
6
7
|
require('../chunk-J7S3KBHL.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
@@ -14,18 +15,18 @@ require('../chunk-D3SX7OUV.cjs');
|
|
|
14
15
|
require('../chunk-7AIT4XSD.cjs');
|
|
15
16
|
require('../chunk-GOUC2DFA.cjs');
|
|
16
17
|
require('../chunk-NRJPCN4J.cjs');
|
|
18
|
+
require('../chunk-3HXQ7TGV.cjs');
|
|
19
|
+
require('../chunk-JR6ZN6QD.cjs');
|
|
20
|
+
require('../chunk-UFYLVZNU.cjs');
|
|
17
21
|
|
|
18
22
|
|
|
19
|
-
var
|
|
20
|
-
require('../chunk-TCMJPIRM.cjs');
|
|
21
|
-
require('../chunk-T3FAFGFD.cjs');
|
|
23
|
+
var _chunkHIGE4NJ6cjs = require('../chunk-HIGE4NJ6.cjs');
|
|
22
24
|
require('../chunk-GD3OA7GU.cjs');
|
|
23
25
|
require('../chunk-LG7MY5KL.cjs');
|
|
24
26
|
require('../chunk-AXMOZZCM.cjs');
|
|
25
|
-
require('../chunk-UFYLVZNU.cjs');
|
|
26
|
-
require('../chunk-3HXQ7TGV.cjs');
|
|
27
|
-
require('../chunk-JR6ZN6QD.cjs');
|
|
28
27
|
require('../chunk-PW7RP73J.cjs');
|
|
28
|
+
require('../chunk-TCMJPIRM.cjs');
|
|
29
|
+
require('../chunk-T3FAFGFD.cjs');
|
|
29
30
|
require('../chunk-UEVMS6QD.cjs');
|
|
30
31
|
require('../chunk-OQL4GIEJ.cjs');
|
|
31
32
|
require('../chunk-A5LHXE5X.cjs');
|
|
@@ -36,4 +37,4 @@ require('../chunk-5AZGAKWR.cjs');
|
|
|
36
37
|
|
|
37
38
|
|
|
38
39
|
|
|
39
|
-
exports.array =
|
|
40
|
+
exports.array = _chunkHIGE4NJ6cjs.array_exports; exports.object = _chunk5BJORXPXcjs.object_exports; exports.string = _chunk5PVXJUXQcjs.string_exports;
|
package/dist/basic/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { i as array } from '../index-123cda08.js';
|
|
2
2
|
export { i as object } from '../index-ed8c0e9f.js';
|
|
3
|
-
export { i as string } from '../index-
|
|
3
|
+
export { i as string } from '../index-1ab7ebf5.js';
|
|
4
4
|
import './array/asyncMergeArray.js';
|
|
5
5
|
import './array/deleteArray.js';
|
|
6
6
|
import './array/duplicateRemoval.js';
|
|
@@ -24,3 +24,4 @@ import './string/firstUpper.js';
|
|
|
24
24
|
import './string/getStartSame.js';
|
|
25
25
|
import './string/getStartSames.js';
|
|
26
26
|
import './string/splitUpper.js';
|
|
27
|
+
import './string/toFunction.js';
|
package/dist/basic/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-T26UPIIQ.js";
|
|
2
2
|
import {
|
|
3
3
|
string_exports
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-6GFRLMWT.js";
|
|
5
5
|
import "../chunk-VKE5JARB.js";
|
|
6
|
+
import "../chunk-RWZBP6BO.js";
|
|
6
7
|
import "../chunk-7DTHADVK.js";
|
|
7
8
|
import {
|
|
8
9
|
object_exports
|
|
@@ -14,18 +15,18 @@ import "../chunk-S42NGJ5W.js";
|
|
|
14
15
|
import "../chunk-ZEAT23CI.js";
|
|
15
16
|
import "../chunk-3IR2ABRO.js";
|
|
16
17
|
import "../chunk-RD4EP3M5.js";
|
|
18
|
+
import "../chunk-SNABGVNO.js";
|
|
19
|
+
import "../chunk-DMZP4RPN.js";
|
|
20
|
+
import "../chunk-T4BAVDTH.js";
|
|
17
21
|
import {
|
|
18
22
|
array_exports
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-Q6FMBSK4.js";
|
|
21
|
-
import "../chunk-D2WYYC5Y.js";
|
|
23
|
+
} from "../chunk-JILAGD3U.js";
|
|
22
24
|
import "../chunk-ZVBCHJA5.js";
|
|
23
25
|
import "../chunk-GOH6G74S.js";
|
|
24
26
|
import "../chunk-GOJN3OQ4.js";
|
|
25
|
-
import "../chunk-T4BAVDTH.js";
|
|
26
|
-
import "../chunk-SNABGVNO.js";
|
|
27
|
-
import "../chunk-DMZP4RPN.js";
|
|
28
27
|
import "../chunk-A276ZDLP.js";
|
|
28
|
+
import "../chunk-Q6FMBSK4.js";
|
|
29
|
+
import "../chunk-D2WYYC5Y.js";
|
|
29
30
|
import "../chunk-4OBNLDTJ.js";
|
|
30
31
|
import "../chunk-EWJJKQIO.js";
|
|
31
32
|
import "../chunk-GYE23WAN.js";
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-5PVXJUXQ.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
var _chunkL7FSHU27cjs = require('../../chunk-L7FSHU27.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
|
|
8
|
+
var _chunkHQQXOE5Ccjs = require('../../chunk-HQQXOE5C.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
7
11
|
var _chunkJ7S3KBHLcjs = require('../../chunk-J7S3KBHL.cjs');
|
|
8
12
|
|
|
9
13
|
|
|
@@ -29,4 +33,6 @@ require('../../chunk-5AZGAKWR.cjs');
|
|
|
29
33
|
|
|
30
34
|
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
exports.appearNum = _chunk3HXQ7TGVcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getFunctionFormat = _chunkHQQXOE5Ccjs.getFunctionFormat; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames; exports.splitUpper = _chunkL7FSHU27cjs.splitUpper; exports.toFunction = _chunkHQQXOE5Ccjs.toFunction;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import "../../chunk-
|
|
1
|
+
import "../../chunk-6GFRLMWT.js";
|
|
2
2
|
import {
|
|
3
3
|
splitUpper
|
|
4
4
|
} from "../../chunk-VKE5JARB.js";
|
|
5
|
+
import {
|
|
6
|
+
getFunctionFormat,
|
|
7
|
+
toFunction
|
|
8
|
+
} from "../../chunk-RWZBP6BO.js";
|
|
5
9
|
import {
|
|
6
10
|
getStartSame
|
|
7
11
|
} from "../../chunk-7DTHADVK.js";
|
|
@@ -26,7 +30,9 @@ export {
|
|
|
26
30
|
appearNumSeat,
|
|
27
31
|
firstLower,
|
|
28
32
|
firstUpper,
|
|
33
|
+
getFunctionFormat,
|
|
29
34
|
getStartSame,
|
|
30
35
|
getStartSames,
|
|
31
|
-
splitUpper
|
|
36
|
+
splitUpper,
|
|
37
|
+
toFunction
|
|
32
38
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkHQQXOE5Ccjs = require('../../chunk-HQQXOE5C.cjs');
|
|
5
|
+
require('../../chunk-5AZGAKWR.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.getFunctionFormat = _chunkHQQXOE5Ccjs.getFunctionFormat; exports.toFunction = _chunkHQQXOE5Ccjs.toFunction;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 把字符串方法转成方法
|
|
3
|
+
*/
|
|
4
|
+
declare function toFunction(str: string): Function | undefined;
|
|
5
|
+
declare function getFunctionFormat(v: Function | string): {
|
|
6
|
+
body: string;
|
|
7
|
+
name: string;
|
|
8
|
+
param: string;
|
|
9
|
+
} | undefined;
|
|
10
|
+
|
|
11
|
+
export { getFunctionFormat, toFunction };
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
var _chunkL7FSHU27cjs = require('./chunk-L7FSHU27.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
|
|
7
|
+
var _chunkHQQXOE5Ccjs = require('./chunk-HQQXOE5C.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
6
10
|
var _chunkJ7S3KBHLcjs = require('./chunk-J7S3KBHL.cjs');
|
|
7
11
|
|
|
8
12
|
|
|
@@ -30,9 +34,11 @@ _chunk5AZGAKWRcjs.__export.call(void 0, string_exports, {
|
|
|
30
34
|
appearNumSeat: () => _chunkJR6ZN6QDcjs.appearNumSeat,
|
|
31
35
|
firstLower: () => _chunkUEVMS6QDcjs.firstLower,
|
|
32
36
|
firstUpper: () => _chunkOQL4GIEJcjs.firstUpper,
|
|
37
|
+
getFunctionFormat: () => _chunkHQQXOE5Ccjs.getFunctionFormat,
|
|
33
38
|
getStartSame: () => _chunkJ7S3KBHLcjs.getStartSame,
|
|
34
39
|
getStartSames: () => _chunkPW7RP73Jcjs.getStartSames,
|
|
35
|
-
splitUpper: () => _chunkL7FSHU27cjs.splitUpper
|
|
40
|
+
splitUpper: () => _chunkL7FSHU27cjs.splitUpper,
|
|
41
|
+
toFunction: () => _chunkHQQXOE5Ccjs.toFunction
|
|
36
42
|
});
|
|
37
43
|
|
|
38
44
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
splitUpper
|
|
3
3
|
} from "./chunk-VKE5JARB.js";
|
|
4
|
+
import {
|
|
5
|
+
getFunctionFormat,
|
|
6
|
+
toFunction
|
|
7
|
+
} from "./chunk-RWZBP6BO.js";
|
|
4
8
|
import {
|
|
5
9
|
getStartSame
|
|
6
10
|
} from "./chunk-7DTHADVK.js";
|
|
@@ -30,9 +34,11 @@ __export(string_exports, {
|
|
|
30
34
|
appearNumSeat: () => appearNumSeat,
|
|
31
35
|
firstLower: () => firstLower,
|
|
32
36
|
firstUpper: () => firstUpper,
|
|
37
|
+
getFunctionFormat: () => getFunctionFormat,
|
|
33
38
|
getStartSame: () => getStartSame,
|
|
34
39
|
getStartSames: () => getStartSames,
|
|
35
|
-
splitUpper: () => splitUpper
|
|
40
|
+
splitUpper: () => splitUpper,
|
|
41
|
+
toFunction: () => toFunction
|
|
36
42
|
});
|
|
37
43
|
|
|
38
44
|
export {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/string/toFunction.ts
|
|
2
|
+
function toFunction(str) {
|
|
3
|
+
const obj = getFunctionFormat(str);
|
|
4
|
+
if (obj && obj.body) {
|
|
5
|
+
const param = (obj.param || "").split(",").map((o) => o.trim()).filter((v) => v);
|
|
6
|
+
return new Function(...param, obj.body);
|
|
7
|
+
} else {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function getFunctionFormat(v) {
|
|
12
|
+
if (v) {
|
|
13
|
+
let st = v.toString();
|
|
14
|
+
st = st.trim();
|
|
15
|
+
let name = "([a-z|A-Z|_|$][a-z|A-Z|_|$|0-9]*)?";
|
|
16
|
+
let fun = "(function\\s*" + name + "\\s*)?";
|
|
17
|
+
let param = "(\\([^\\(|\\)]*\\)\\s*)?";
|
|
18
|
+
let body = "[\\s|\\n|\\r]*\\{((.|\n|\r)+?)\\}[\\s|\\n|\\r]*";
|
|
19
|
+
let reg = new RegExp("^" + fun + param + body + "$");
|
|
20
|
+
let vts = reg.exec(st);
|
|
21
|
+
let obj = {
|
|
22
|
+
body: st,
|
|
23
|
+
name: "",
|
|
24
|
+
param: ""
|
|
25
|
+
};
|
|
26
|
+
if (vts && vts.length > 0) {
|
|
27
|
+
obj.name = vts[2];
|
|
28
|
+
obj.param = vts[3];
|
|
29
|
+
obj.body = `{${vts[4]}}`;
|
|
30
|
+
}
|
|
31
|
+
return obj;
|
|
32
|
+
} else {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
exports.toFunction = toFunction; exports.getFunctionFormat = getFunctionFormat;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5PVXJUXQcjs = require('./chunk-5PVXJUXQ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk5BJORXPXcjs = require('./chunk-5BJORXPX.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkHIGE4NJ6cjs = require('./chunk-HIGE4NJ6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
@@ -14,9 +14,9 @@ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
|
14
14
|
// packages/basic/index.ts
|
|
15
15
|
var basic_exports = {};
|
|
16
16
|
_chunk5AZGAKWRcjs.__export.call(void 0, basic_exports, {
|
|
17
|
-
array: () =>
|
|
17
|
+
array: () => _chunkHIGE4NJ6cjs.array_exports,
|
|
18
18
|
object: () => _chunk5BJORXPXcjs.object_exports,
|
|
19
|
-
string: () =>
|
|
19
|
+
string: () => _chunk5PVXJUXQcjs.string_exports
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// packages/basic/string/toFunction.ts
|
|
2
|
+
function toFunction(str) {
|
|
3
|
+
const obj = getFunctionFormat(str);
|
|
4
|
+
if (obj && obj.body) {
|
|
5
|
+
const param = (obj.param || "").split(",").map((o) => o.trim()).filter((v) => v);
|
|
6
|
+
return new Function(...param, obj.body);
|
|
7
|
+
} else {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function getFunctionFormat(v) {
|
|
12
|
+
if (v) {
|
|
13
|
+
let st = v.toString();
|
|
14
|
+
st = st.trim();
|
|
15
|
+
let name = "([a-z|A-Z|_|$][a-z|A-Z|_|$|0-9]*)?";
|
|
16
|
+
let fun = "(function\\s*" + name + "\\s*)?";
|
|
17
|
+
let param = "(\\([^\\(|\\)]*\\)\\s*)?";
|
|
18
|
+
let body = "[\\s|\\n|\\r]*\\{((.|\n|\r)+?)\\}[\\s|\\n|\\r]*";
|
|
19
|
+
let reg = new RegExp("^" + fun + param + body + "$");
|
|
20
|
+
let vts = reg.exec(st);
|
|
21
|
+
let obj = {
|
|
22
|
+
body: st,
|
|
23
|
+
name: "",
|
|
24
|
+
param: ""
|
|
25
|
+
};
|
|
26
|
+
if (vts && vts.length > 0) {
|
|
27
|
+
obj.name = vts[2];
|
|
28
|
+
obj.param = vts[3];
|
|
29
|
+
obj.body = `{${vts[4]}}`;
|
|
30
|
+
}
|
|
31
|
+
return obj;
|
|
32
|
+
} else {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
toFunction,
|
|
39
|
+
getFunctionFormat
|
|
40
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkT22I7TJQcjs = require('./chunk-T22I7TJQ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkYGJOBIEOcjs = require('./chunk-YGJOBIEO.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkZZEFL2TEcjs = require('./chunk-ZZEFL2TE.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk2BY5RQHUcjs = require('./chunk-2BY5RQHU.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
@@ -17,7 +17,7 @@ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
|
17
17
|
// packages/judge/index.ts
|
|
18
18
|
var judge_exports = {};
|
|
19
19
|
_chunk5AZGAKWRcjs.__export.call(void 0, judge_exports, {
|
|
20
|
-
matchs: () =>
|
|
20
|
+
matchs: () => _chunkT22I7TJQcjs.matchs,
|
|
21
21
|
matchsEnd: () => _chunkYGJOBIEOcjs.matchsEnd,
|
|
22
22
|
matchsStart: () => _chunkZZEFL2TEcjs.matchsStart,
|
|
23
23
|
matchsWhole: () => _chunk2BY5RQHUcjs.matchsWhole
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
string_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6GFRLMWT.js";
|
|
4
4
|
import {
|
|
5
5
|
object_exports
|
|
6
6
|
} from "./chunk-CO347JUB.js";
|
|
7
7
|
import {
|
|
8
8
|
array_exports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JILAGD3U.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./chunk-UICA3PK6.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
matchs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T2QKEABG.js";
|
|
4
|
+
import {
|
|
5
|
+
matchsEnd
|
|
6
|
+
} from "./chunk-YNOFNHEK.js";
|
|
4
7
|
import {
|
|
5
8
|
matchsStart
|
|
6
9
|
} from "./chunk-S6JRKYPY.js";
|
|
7
10
|
import {
|
|
8
11
|
matchsWhole
|
|
9
12
|
} from "./chunk-IRGCP7KH.js";
|
|
10
|
-
import {
|
|
11
|
-
matchsEnd
|
|
12
|
-
} from "./chunk-YNOFNHEK.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./chunk-UICA3PK6.js";
|
package/dist/css/index.cjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-ZBNE6T3A.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-LTVXRDTD.cjs');
|
|
4
|
+
var _chunkVY5VQ7WEcjs = require('../chunk-VY5VQ7WE.cjs');
|
|
6
5
|
|
|
7
6
|
|
|
8
|
-
var
|
|
7
|
+
var _chunkWLBKU7NMcjs = require('../chunk-WLBKU7NM.cjs');
|
|
9
8
|
|
|
10
9
|
|
|
11
|
-
var
|
|
10
|
+
var _chunkPTLVJ5OLcjs = require('../chunk-PTLVJ5OL.cjs');
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
var
|
|
13
|
+
var _chunkGFAUQTB2cjs = require('../chunk-GFAUQTB2.cjs');
|
|
15
14
|
|
|
16
15
|
|
|
17
|
-
var
|
|
16
|
+
var _chunk4X7AFGTVcjs = require('../chunk-4X7AFGTV.cjs');
|
|
17
|
+
require('../chunk-LTVXRDTD.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkUGFSIZ5Pcjs = require('../chunk-UGFSIZ5P.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkTE3XNGF4cjs = require('../chunk-TE3XNGF4.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkUGS2F6DKcjs = require('../chunk-UGS2F6DK.cjs');
|
|
27
27
|
require('../chunk-5AZGAKWR.cjs');
|
|
28
28
|
|
|
29
29
|
|
package/dist/css/index.js
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import {
|
|
3
|
-
setCss
|
|
4
|
-
} from "../chunk-XUL6LPTN.js";
|
|
5
|
-
import "../chunk-J7CICTHH.js";
|
|
6
|
-
import {
|
|
7
|
-
fetchUnitValue
|
|
8
|
-
} from "../chunk-WX3JYE47.js";
|
|
1
|
+
import "../chunk-VSSUU2KF.js";
|
|
9
2
|
import {
|
|
10
3
|
getPositionRelative
|
|
11
4
|
} from "../chunk-MQHLAQQA.js";
|
|
12
|
-
import {
|
|
13
|
-
getCss
|
|
14
|
-
} from "../chunk-5RZYHE3X.js";
|
|
15
5
|
import {
|
|
16
6
|
getPrentClass
|
|
17
7
|
} from "../chunk-2QGQBPEX.js";
|
|
@@ -21,9 +11,19 @@ import {
|
|
|
21
11
|
import {
|
|
22
12
|
getSVG
|
|
23
13
|
} from "../chunk-WIYZQNGO.js";
|
|
14
|
+
import {
|
|
15
|
+
setCss
|
|
16
|
+
} from "../chunk-XUL6LPTN.js";
|
|
17
|
+
import "../chunk-J7CICTHH.js";
|
|
18
|
+
import {
|
|
19
|
+
fetchUnitValue
|
|
20
|
+
} from "../chunk-WX3JYE47.js";
|
|
24
21
|
import {
|
|
25
22
|
getAttrObj
|
|
26
23
|
} from "../chunk-N3FZ4WUI.js";
|
|
24
|
+
import {
|
|
25
|
+
getCss
|
|
26
|
+
} from "../chunk-5RZYHE3X.js";
|
|
27
27
|
import "../chunk-UICA3PK6.js";
|
|
28
28
|
export {
|
|
29
29
|
fetchUnitValue,
|
package/dist/html/index.cjs
CHANGED
package/dist/html/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import "../chunk-KQR7FXBF.js";
|
|
|
2
2
|
import {
|
|
3
3
|
analysisHtml
|
|
4
4
|
} from "../chunk-GIAO77MY.js";
|
|
5
|
-
import "../chunk-N3FZ4WUI.js";
|
|
6
5
|
import {
|
|
7
6
|
htmlEscape
|
|
8
7
|
} from "../chunk-NCSN3MC5.js";
|
|
8
|
+
import "../chunk-N3FZ4WUI.js";
|
|
9
9
|
import "../chunk-UICA3PK6.js";
|
|
10
10
|
export {
|
|
11
11
|
analysisHtml,
|
|
@@ -5,23 +5,28 @@ import { firstUpper } from './basic/string/firstUpper.js';
|
|
|
5
5
|
import { getStartSame } from './basic/string/getStartSame.js';
|
|
6
6
|
import { getStartSames } from './basic/string/getStartSames.js';
|
|
7
7
|
import { splitUpper } from './basic/string/splitUpper.js';
|
|
8
|
+
import { getFunctionFormat, toFunction } from './basic/string/toFunction.js';
|
|
8
9
|
|
|
9
10
|
declare const index_appearNum: typeof appearNum;
|
|
10
11
|
declare const index_appearNumSeat: typeof appearNumSeat;
|
|
11
12
|
declare const index_firstLower: typeof firstLower;
|
|
12
13
|
declare const index_firstUpper: typeof firstUpper;
|
|
14
|
+
declare const index_getFunctionFormat: typeof getFunctionFormat;
|
|
13
15
|
declare const index_getStartSame: typeof getStartSame;
|
|
14
16
|
declare const index_getStartSames: typeof getStartSames;
|
|
15
17
|
declare const index_splitUpper: typeof splitUpper;
|
|
18
|
+
declare const index_toFunction: typeof toFunction;
|
|
16
19
|
declare namespace index {
|
|
17
20
|
export {
|
|
18
21
|
index_appearNum as appearNum,
|
|
19
22
|
index_appearNumSeat as appearNumSeat,
|
|
20
23
|
index_firstLower as firstLower,
|
|
21
24
|
index_firstUpper as firstUpper,
|
|
25
|
+
index_getFunctionFormat as getFunctionFormat,
|
|
22
26
|
index_getStartSame as getStartSame,
|
|
23
27
|
index_getStartSames as getStartSames,
|
|
24
28
|
index_splitUpper as splitUpper,
|
|
29
|
+
index_toFunction as toFunction,
|
|
25
30
|
};
|
|
26
31
|
}
|
|
27
32
|
|