summaryrefslogtreecommitdiff
path: root/CSharp
diff options
context:
space:
mode:
Diffstat (limited to 'CSharp')
-rw-r--r--CSharp/Ivy/Ivy/Ivy.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/CSharp/Ivy/Ivy/Ivy.cs b/CSharp/Ivy/Ivy/Ivy.cs
index 7111157..069fd9e 100644
--- a/CSharp/Ivy/Ivy/Ivy.cs
+++ b/CSharp/Ivy/Ivy/Ivy.cs
@@ -594,9 +594,9 @@ namespace IvyBus
if (exp.StartsWith("^") && sent_messageClasses != null)
{
regexp_ok = false;
- for (int i = 0; i < sent_messageClasses.Length; i++)
+ foreach (string exp_class in sent_messageClasses)
{
- if (sent_messageClasses[i].Equals(exp.Substring(1)))
+ if ( exp.Substring(1).StartsWith(exp_class) )
return true;
}
}