diff --git a/.back/create_public_branch.py b/.back/create_public_branch.py index 5c96d68..c66de81 100755 --- a/.back/create_public_branch.py +++ b/.back/create_public_branch.py @@ -44,10 +44,16 @@ def modify_speed_go(filepath): ) content = re.sub( - r'\n\s*// 对于三网测速(cmcc、cu、ct),优先使用 privatespeedtest 进行私有测速[\s\S]*?\n\s*}\n', + r''' + \n\s*// 对于三网测速(cmcc、cu、ct),优先使用 privatespeedtest 进行私有测速 + \s*\n + \s*opLower\s*:=\s*strings\.ToLower\(operator\) + [\s\S]*? + \n\s*}\s* + ''', '\n', content, - flags=re.MULTILINE + flags=re.MULTILINE | re.VERBOSE ) write_file(filepath, content)