0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2025-09-11 12:24:27 +00:00

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
2 changed files with 2 additions and 2 deletions

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';
},
}