efront 4.18.4 → 4.19.0
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/#/345/233/275/351/231/205/345/214/226.yml +45 -0
- package/apps/kugou/main.js +17 -1
- package/apps/kugou/song/list.js +1 -1
- package/apps/pivot/api.yml +2 -0
- package/apps/pivot/db/config.xht +10 -5
- package/apps/pivot/db/edit.xht +74 -20
- package/apps/pivot/db/list.xht +2 -2
- package/apps/pivot/menu.yml +1 -0
- package/coms/basic/cross_.js +9 -6
- package/coms/basic/data.js +2 -2
- package/coms/basic/mark_test.js +1 -1
- package/coms/basic/seek.js +1 -1
- package/coms/basic/spaces.js +50 -0
- package/coms/basic/submit_.js +1 -1
- package/coms/compile/Program.js +8 -36
- package/coms/kugou/api.js +4 -0
- package/coms/kugou/musicList.js +3 -0
- package/coms/kugou/parseSongsList.js +50 -6
- package/coms/kugou/player.js +1 -0
- package/coms/random/name.js +1 -506
- package/coms/random//345/247/223.js +1 -0
- package/coms/zimoli/password.js +1 -0
- package/coms/zimoli/password.less +32 -35
- package/coms/zimoli/render.js +48 -8
- package/coms/zimoli//345/203/217/344/270/255/346/226/207/344/272/272/345/220/215.js +22 -0
- package/coms//350/214/250/350/217/260//346/240/207/347/255/276/345/214/226.js +1 -1
- package/package.json +1 -1
- package/public/efront.js +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var reg = new RegExp(`^(${random$姓.join('|')})(${/\S{1,2}/.source})儿?$`);
|
|
2
|
+
var reg2 = new RegExp(`^(${random$姓.join('|')})(${/\S{3,9}/.source})$`);
|
|
3
|
+
var reg3 = new RegExp(`^[小大黑白胖瘦傻笨阿](${random$姓.join('|') + "|[鼠牛虎兔龙蛇马羊猴鸡狗猪]"})子?$`);
|
|
4
|
+
return function like(text) {
|
|
5
|
+
if (isEmpty(text)) return false;
|
|
6
|
+
text = String(text).split(/[\,、,&与和\s]/);
|
|
7
|
+
for (var t of text) {
|
|
8
|
+
if (!t) continue;
|
|
9
|
+
if (reg.test(t)) return 6;
|
|
10
|
+
if (reg3.test(t)) return 4;
|
|
11
|
+
if (/^[小大]\S{1,3}$/.test(t)) return 3;
|
|
12
|
+
if (t.length === 2 && t.charAt(0) === t.charAt(1)) return 2;
|
|
13
|
+
var m = /^(?:[a-z]\.?){2,5}|(?:[a-z]\.?){2,5}$/i.exec(t);
|
|
14
|
+
if (m) {
|
|
15
|
+
var s = m.index > 0 ? t.slice(0, m.index) : t.slice(m.index + m[0].length);
|
|
16
|
+
if (!s || like(s)) {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
@@ -63,7 +63,7 @@ var codecolor = function (c, encode) {
|
|
|
63
63
|
used[k].forEach(k in predefs ? setPredef : setOutside);
|
|
64
64
|
}
|
|
65
65
|
if (c.program) var { space_exp: spaceReg, control_reg } = c.program;
|
|
66
|
-
if (spaceReg) var unspaceReg = new RegExp(
|
|
66
|
+
if (spaceReg) var unspaceReg = new RegExp(spaces.avoid(), 'g');
|
|
67
67
|
var wraptext = function (t, l) {
|
|
68
68
|
if (unspaceReg) t = t.replace(unspaceReg, a => {
|
|
69
69
|
a = encode(a);
|