You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the code intention was to support some sort of glob syntax or even less. . - means only dot * - matches any number of any characters including none
so prefix.* matches anything that starts with prefix.
and first.second matches only first.second and nothing more
Everything else that "works" now but should not - I would consider a bug.
Indeed. Magic.
For your use-case create two listeners: node.* and task.*
In case you are not interested in node.push, filter it out in listener itself.
If you really want magic, subscribe to * and do a filtering in js code. It may be even more optimal for overall system throughput.
ref: https://developer.enonic.com/docs/xp/stable/api/lib-event#listener
It's not RegExp, but similar
WRONG
'(node.(created|updated|deleted)|task..*)'
RIGHT
'(node.(created|updated|deleted)|task.*)'
So a dot, simply means a dot, not any char like in regexp.
And a asterix means wildcard. Uncertain wether it means anything, 0 or more times.
The text was updated successfully, but these errors were encountered: