add support for dot, space, hyphen

This commit is contained in:
Preeti Yuankrathok 2018-08-08 23:26:28 +07:00
parent 9e6a586423
commit f8a4bb9de8
2 changed files with 8 additions and 2 deletions

8
dist/build.js vendored

File diff suppressed because one or more lines are too long

View file

@ -24,7 +24,7 @@ export default class {
Emitter.emit.apply(Emitter, packet.data);
if (this.store) this.passToStore('SOCKET_' + packet.data[0], [...packet.data.slice(1)])
if (this.store) this.passToStore('SOCKET_' + packet.data[0].replace(/\W/g, '_'), [...packet.data.slice(1)])
};
let _this = this;