Compare commits
1 Commits
cf292031fd
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e7b88726ec |
@@ -1,6 +1,6 @@
|
||||
[
|
||||
{
|
||||
"chan": "system:observer:subscribed[UID]:agents",
|
||||
"chan": "system:observer:subscribed[CUID]:agents",
|
||||
"events": [
|
||||
{
|
||||
"eventName": "move",
|
||||
|
||||
@@ -328,7 +328,7 @@ class MessageBus {
|
||||
*/
|
||||
chanMatch(myChan, targetChan) {
|
||||
targetChan = targetChan.replace(/\[UID\]/g, this.userInfo.uuid)
|
||||
targetChan = targetChan.replace(/\[CNXID\]/g, this.cnxId)
|
||||
targetChan = targetChan.replace(/\[CUID\]/g, this.cnxId)
|
||||
let re = new RegExp('^'+targetChan.replace(/\*/g,'(.+)')+'$','g')
|
||||
return(myChan.match(re)!=null)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user