fix: 将 fallback 字段中的中划线命名转换为 singbox 的下划线风格
This commit is contained in:
+2
-1
@@ -178,7 +178,8 @@ function clashToSingbox(node) {
|
||||
];
|
||||
for (const k in node) {
|
||||
if (!excludeKeys.includes(k)) {
|
||||
sb[k] = node[k];
|
||||
const newKey = k.replace(/-/g, '_');
|
||||
sb[newKey] = node[k];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user