cnxId & [CUID]
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"chan": "system:observer:subscribed[UID]:agents",
|
"chan": "system:observer:subscribed[CUID]:agents",
|
||||||
"events": [
|
"events": [
|
||||||
{
|
{
|
||||||
"eventName": "move",
|
"eventName": "move",
|
||||||
|
|||||||
@@ -328,7 +328,7 @@ class MessageBus {
|
|||||||
*/
|
*/
|
||||||
chanMatch(myChan, targetChan) {
|
chanMatch(myChan, targetChan) {
|
||||||
targetChan = targetChan.replace(/\[UID\]/g, this.userInfo.uuid)
|
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')
|
let re = new RegExp('^'+targetChan.replace(/\*/g,'(.+)')+'$','g')
|
||||||
return(myChan.match(re)!=null)
|
return(myChan.match(re)!=null)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user