Do not serialize custom job parameter

pull/461/head
Frostebite 2022-09-28 00:47:07 +01:00
parent e06e4fba54
commit a297d26ece
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -4795,7 +4795,7 @@ class TaskParameterSerializer {
return cloud_runner_options_1.default.ToEnvVarFormat(input); return cloud_runner_options_1.default.ToEnvVarFormat(input);
} }
static UndoEnvVarFormat(element) { static UndoEnvVarFormat(element) {
return this.camelize(element.replace('GAMECI_', '').replace('_', ' ')); return this.camelize(element.replace('GAMECI_', '').replace(/_+/g, '').toLowerCase());
} }
static camelize(string) { static camelize(string) {
return string return string

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -116,7 +116,7 @@ export class TaskParameterSerializer {
} }
public static UndoEnvVarFormat(element): string { public static UndoEnvVarFormat(element): string {
return this.camelize(element.replace('GAMECI_', '').replace('_', ' ')); return this.camelize(element.replace('GAMECI_', '').replace(/_+/g, '').toLowerCase());
} }
private static camelize(string) { private static camelize(string) {