feat: ProxyUtils 增加 getFlag, getISO 方法

This commit is contained in:
xream
2024-03-31 08:20:51 +08:00
parent e40b3f88d5
commit fa6a274f79
3 changed files with 110 additions and 103 deletions

View File

@@ -15,6 +15,7 @@ import $ from '@/core/app';
import { FILES_KEY, MODULES_KEY } from '@/constants';
import { findByName } from '@/utils/database';
import { produceArtifact } from '@/restful/sync';
import { getFlag, getISO } from '@/utils/geo';
function preprocess(raw) {
for (const processor of PROXY_PREPROCESSORS) {
@@ -258,6 +259,8 @@ export const ProxyUtils = {
isIPv6,
isIP,
yaml: YAML,
getFlag,
getISO,
};
function tryParse(parser, line) {