mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 15:09:03 +08:00
chore: YAML 解析兼容(保持类型)
This commit is contained in:
parent
a84007d39e
commit
31b6dd0507
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.197",
|
"version": "2.14.198",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -4,7 +4,15 @@ function retry(fn, content, ...args) {
|
|||||||
try {
|
try {
|
||||||
return fn(content, ...args);
|
return fn(content, ...args);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return fn(content.replace(/!<str>/g, ''), ...args);
|
return fn(
|
||||||
|
dump(
|
||||||
|
fn(
|
||||||
|
content.replace(/!<str>\s*/g, '__SubStoreJSYAMLString__'),
|
||||||
|
...args,
|
||||||
|
),
|
||||||
|
).replace(/__SubStoreJSYAMLString__/g, ''),
|
||||||
|
...args,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user