We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9fafec commit b3e213cCopy full SHA for b3e213c
1 file changed
src/whatsapp/controllers/instance.controller.ts
@@ -64,7 +64,10 @@ export class InstanceController {
64
this.repository,
65
this.cache,
66
);
67
- instance.instanceName = instanceName;
+ instance.instanceName = instanceName
68
+ .toLowerCase()
69
+ .replace(/[^a-z0-9]/g, '')
70
+ .replace(' ', '');
71
this.logger.verbose('instance: ' + instance.instanceName + ' created');
72
73
this.waMonitor.waInstances[instance.instanceName] = instance;
@@ -191,7 +194,10 @@ export class InstanceController {
191
194
192
195
193
196
197
198
199
200
201
202
203
0 commit comments