-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathscriptMap.js
More file actions
19 lines (18 loc) · 802 Bytes
/
scriptMap.js
File metadata and controls
19 lines (18 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const scriptMap = {
'./script-hub.js': /^https?:\/\/script\.hub\/($|edit\/|reload)/,
'./Rewrite-Parser.js':
/^https?:\/\/script\.hub\/file\/_start_\/.+type=(qx-rewrite|loon-plugin|surge-module|all-module)/,
'./rule-parser.js': /^https?:\/\/script\.hub\/file\/_start_\/.+type=rule-set/,
'./script-converter.js': /^https?:\/\/script\.hub\/convert\//,
}
const scriptMapBeta = {
'./script-hub.beta.js': /^https?:\/\/script\.hub\/($|edit\/|reload)/,
'./Rewrite-Parser.beta.js':
/^https?:\/\/script\.hub\/file\/_start_\/.+type=(qx-rewrite|loon-plugin|surge-module|all-module)/,
'./rule-parser.beta.js': /^https?:\/\/script\.hub\/file\/_start_\/.+type=rule-set/,
'./script-converter.beta.js': /^https?:\/\/script\.hub\/convert\//,
}
module.exports = {
scriptMap,
scriptMapBeta,
}