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:
@ -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';
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user