diff options
Diffstat (limited to 'CSharp/Ivy')
-rw-r--r-- | CSharp/Ivy/IvyPPC/Ivy.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CSharp/Ivy/IvyPPC/Ivy.cs b/CSharp/Ivy/IvyPPC/Ivy.cs index 7111157..069fd9e 100644 --- a/CSharp/Ivy/IvyPPC/Ivy.cs +++ b/CSharp/Ivy/IvyPPC/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;
}
}
|