Fix wrong server name escaping symbol

remotes/1708434123922220183/feature/service-configurations
Inex Code 2021-12-26 21:41:53 +02:00 committed by kherel
parent 72100e483a
commit 2dfb92f650
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class HetznerApi extends ApiMap {
final apiToken = StringGenerators.apiToken();
// Replace all non-alphanumeric characters with an underscore
final hostname = domainName.split('.')[0].replaceAll(RegExp(r'[^a-zA-Z0-9]'), '_');
final hostname = domainName.split('.')[0].replaceAll(RegExp(r'[^a-zA-Z0-9]'), '-');
/// add ssh key when you need it: e.g. "ssh_keys":["kherel"]
/// check the branch name, it could be "development" or "master".