mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 01:06:44 +00:00
Replace all non-alphanumeric symbols during hetzner creation
This commit is contained in:
parent
c937cfdbb4
commit
30937740b6
|
@ -114,7 +114,8 @@ class HetznerApi extends ApiMap {
|
|||
|
||||
final apiToken = StringGenerators.apiToken();
|
||||
|
||||
final hostname = domainName.split('.')[0];
|
||||
// Replace all non-alphanumeric characters with an underscore
|
||||
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".
|
||||
|
|
Loading…
Reference in a new issue