Fix Typo and Minor Code Smell

This commit is contained in:
jeremy bolster 2022-08-31 17:20:42 -07:00
parent 7031d2dbb7
commit 62b824b69c
No known key found for this signature in database
GPG Key ID: 4CFAF4DB12C34EAF
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ The goal is to run Wg Gen Web in a container and WireGuard on host system.
## Features

* Self-hosted and web based
* Automatically select IP from the netowrk pool assigned to client
* Automatically select IP from the network pool assigned to client
* QR-Code for convenient mobile client configuration
* Sent email to client with QR-code and client config
* Enable / Disable client

View File

@ -609,7 +609,7 @@
getConfigFileName(client){
let name = client.name.split(' ').join('-');
// replace special chars
name = name.replace(/[^a-zA-Z0-9_-]+/g, '');
name = name.replace(/[^a-zA-Z\d_-]+/g, '');
return name + '.conf';
},
}