Skip to content

Commit

Permalink
chore: edit regex since dev team could be set as empty in project file
Browse files Browse the repository at this point in the history
  • Loading branch information
rnr committed Dec 5, 2024
1 parent d676ee3 commit f5530f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config_script/whitelabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def set_global_parameter(self, parameter):
# define regex rule and replacement string for every possible parameter
if parameter == "dev_team":
parameter_string = 'DEVELOPMENT_TEAM = '+parameter_value+';'
parameter_regex = 'DEVELOPMENT_TEAM = .{10};'
parameter_regex = 'DEVELOPMENT_TEAM = (.{10}|\"\");'
elif parameter == "marketing_version":
parameter_string = 'MARKETING_VERSION = '+parameter_value+';'
parameter_regex = 'MARKETING_VERSION = .*;'
Expand Down Expand Up @@ -419,7 +419,7 @@ def set_team_for_target(self, target):
config_file_string_out = config_file_string
# string and regex for dev team
parameter_string = 'DEVELOPMENT_TEAM = '+dev_team+';'
parameter_regex = 'DEVELOPMENT_TEAM = .{10};'
parameter_regex = 'DEVELOPMENT_TEAM = (.{10}|\"\");'
# replace all regex findings with new parameters string
config_file_string_out = re.sub(parameter_regex, parameter_string, config_file_string)
# if something was changed
Expand Down

0 comments on commit f5530f3

Please sign in to comment.