 |
Zzzer Newbie
Joined: 04 Nov 2006 Posts: 3
|
Posted: Wed May 30, 2007 2:35 pm
Pattern matching |
The following trigger used to work in Zmud but not working in Cmud
#trig {{~<|~{|~[}chat{~>|~}|~]}:} {#cap chat}
I did some testing and it would seem that the ~{ and ~} is whats causing the trigger not to fire. The trigger fires if the pattern is changed {~<|~[}chat{~>|~]}:
(This is not a big problem since it's much easier to use just (%p) on both sides) |
|
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Wed May 30, 2007 6:36 pm [1.33] Parsing Bug in pattern matching |
Confirmed. There's a definite parsing bug here. Oddly enough, if you do the ~} and ~{ by themselves or have the be last in their respective lists then "{chat}: xxxx" will match.
As a workaround try pulling them into two triggers like so.
| Code: |
#trig {{~<|~[}chat{~>|~]}:} {#cap chat}
#trig {{~{}chat{~}}:} {#cap chat} |
|
|
_________________ Asati di tempari! |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu May 31, 2007 5:24 pm |
Added to bug list.
|
|
|
|
 |
|
|
|