зеркало из https://github.com/mozilla/marytts.git
strip invalid characters from voice name when generating files for Maven
fixes #458
This commit is contained in:
Родитель
c33638fc55
Коммит
d5c8b12075
|
@ -254,7 +254,7 @@ public class VoiceCompiler extends VoiceImportComponent {
|
|||
File[] filesForFilesystem, Map<String, String> extraVariablesToSubstitute) {
|
||||
this.mvn = mvn;
|
||||
this.compileDir = compileDir;
|
||||
this.voiceName = voiceName;
|
||||
this.voiceName = voiceName.replaceAll("[^\\w\\-]", "");
|
||||
this.voiceVersion = voiceVersion;
|
||||
this.locale = locale;
|
||||
this.gender = gender;
|
||||
|
|
Загрузка…
Ссылка в новой задаче