From 62b824b69c909e264fa4696e736d9ad4162484f1 Mon Sep 17 00:00:00 2001 From: jeremy bolster Date: Wed, 31 Aug 2022 17:20:42 -0700 Subject: [PATCH] Fix Typo and Minor Code Smell --- README.md | 2 +- ui/src/components/Clients.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e3429e..66ed3ff 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ui/src/components/Clients.vue b/ui/src/components/Clients.vue index 305e695..351b937 100644 --- a/ui/src/components/Clients.vue +++ b/ui/src/components/Clients.vue @@ -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'; }, }