File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,10 @@ export class InstanceController {
6464 this . repository ,
6565 this . cache ,
6666 ) ;
67- instance . instanceName = instanceName ;
67+ instance . instanceName = instanceName
68+ . toLowerCase ( )
69+ . replace ( / [ ^ a - z 0 - 9 ] / g, '' )
70+ . replace ( ' ' , '' ) ;
6871 this . logger . verbose ( 'instance: ' + instance . instanceName + ' created' ) ;
6972
7073 this . waMonitor . waInstances [ instance . instanceName ] = instance ;
@@ -191,7 +194,10 @@ export class InstanceController {
191194 this . repository ,
192195 this . cache ,
193196 ) ;
194- instance . instanceName = instanceName ;
197+ instance . instanceName = instanceName
198+ . toLowerCase ( )
199+ . replace ( / [ ^ a - z 0 - 9 ] / g, '' )
200+ . replace ( ' ' , '' ) ;
195201
196202 this . logger . verbose ( 'instance: ' + instance . instanceName + ' created' ) ;
197203
You can’t perform that action at this time.
0 commit comments