mirror of
https://github.com/oneclickvirt/ecs.git
synced 2026-04-22 23:27:11 +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