Skip to content

Commit f7e2dad

Browse files
committed
更新[BoxJs]: 优化订阅链接多余空格&换行等字符问题
1 parent 9cb1554 commit f7e2dad

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎box/release/box.release.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"releases": [
33
{
4-
"version": "0.2.3",
4+
"version": "0.2.4",
55
"tags": ["beta"],
66
"author": "@chavyleung",
77
"icon": "https://avatars3.githubusercontent.com/u/29748519",
88
"repo": "https://github.com/chavyleung",
99
"notes": [
1010
{
1111
"name": "优化",
12-
"descs": ["帮助页面样式"]
12+
"descs": ["帮助页面样式", "订阅链接多余空格&换行等字符"]
1313
}
1414
]
1515
},

‎chavy.box.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const $ = new Env('BoxJs')
22
$.domain = '8.8.8.8'
33

4-
$.version = '0.2.3'
4+
$.version = '0.2.4'
55
$.versionType = 'beta'
66
$.KEY_sessions = 'chavy_boxjs_sessions'
77
$.KEY_versions = 'chavy_boxjs_versions'
@@ -323,7 +323,7 @@ async function getAppSubs() {
323323
const sub = usercfgs.appsubs[subIdx]
324324
subActs.push(
325325
new Promise((resolve) => {
326-
$.get({ url: sub.url }, (err, resp, data) => {
326+
$.get({ url: sub.url.replace(/[ ]|[\r\n]/g, '') }, (err, resp, data) => {
327327
try {
328328
const respsub = JSON.parse(data)
329329
if (Array.isArray(respsub.apps)) {

0 commit comments

Comments
 (0)