diff options
Diffstat (limited to 'tests/NewLine.java')
-rw-r--r-- | tests/NewLine.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/NewLine.java b/tests/NewLine.java index 5517a54..8381379 100644 --- a/tests/NewLine.java +++ b/tests/NewLine.java @@ -32,10 +32,10 @@ class NewLine { bus = new Ivy("NewLine","NewLine ready", null); bus.protectNewlines(true); bus.sendToSelf(true); - bus.bindMsg("^coucou(.)monde$",new IvyMessageListener() { - public void receive(IvyClient ic,String[] args) { + bus.bindMsg("^coucou([^m])monde",new IvyMessageListener() { + public void receive(IvyClient ic,String[] a) { recus++; - if (recus==nbmsg) System.out.println("received "+nbmsg+" ["+args[0]+"]"); + if (recus==nbmsg) System.out.println("received "+nbmsg+" ["+a[0]+"]"); } }); bus.start(domain); |