mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-07-21 23:34:29 +08:00
fix: 脚本链接为路径时带参解析
This commit is contained in:
parent
3e14f91347
commit
dca3d2f79c
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.19.58",
|
"version": "2.19.59",
|
||||||
"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": {
|
||||||
|
@ -142,9 +142,9 @@ async function processFn(
|
|||||||
? `#${rawArgs[1]}`
|
? `#${rawArgs[1]}`
|
||||||
: ''
|
: ''
|
||||||
}`;
|
}`;
|
||||||
const downloadUrlMatch = url.match(
|
const downloadUrlMatch = url
|
||||||
/^\/api\/(file|module)\/(.+)/,
|
.split('#')[0]
|
||||||
);
|
.match(/^\/api\/(file|module)\/(.+)/);
|
||||||
if (downloadUrlMatch) {
|
if (downloadUrlMatch) {
|
||||||
let type = '';
|
let type = '';
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user