mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 07:08:04 +08:00
Fix: Remove spaces in stage name
This commit is contained in:
parent
020fcb2dde
commit
3f28d59e35
@ -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':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user