mirror of
http://bgp.hk.skcks.cn:10088/github.com/oneclickvirt/ecs
synced 2026-04-20 21:01:12 +08:00
Clean up newlines in create_public_branch.py
Remove unnecessary newlines around specific strings in content.
This commit is contained in:
@@ -54,6 +54,13 @@ def modify_speed_go(filepath):
|
||||
"""
|
||||
content = read_file(filepath)
|
||||
|
||||
content = re.sub(
|
||||
r'\n\s*"time"\s*\n',
|
||||
'\n',
|
||||
content,
|
||||
flags=re.MULTILINE
|
||||
)
|
||||
|
||||
content = re.sub(
|
||||
r'\n\s*"github\.com/oneclickvirt/privatespeedtest/pst"\s*\n',
|
||||
'\n',
|
||||
|
||||
Reference in New Issue
Block a user