mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Fix: Remove spaces in stage name
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import copy
|
||||
import importlib
|
||||
import os
|
||||
import re
|
||||
|
||||
from module.campaign.assets import *
|
||||
from module.campaign.campaign_base import CampaignBase
|
||||
@@ -138,7 +139,7 @@ class CampaignRun(UI):
|
||||
Returns:
|
||||
str, str: name, folder
|
||||
"""
|
||||
name = str(name).lower()
|
||||
name = re.sub('[ \t\n]', '', str(name)).lower()
|
||||
if name[0].isdigit():
|
||||
name = 'campaign_' + name.lower().replace('-', '_')
|
||||
if folder == 'event_20201126_cn' and name == 'vsp':
|
||||
|
||||
Reference in New Issue
Block a user