Fix wrong server name escaping symbol

pull/83/head
Inex Code 2021-12-26 21:41:53 +02:00
parent 30937740b6
commit e7e9209cce
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".