Changed RegEx expression to find Links in FixTranstionText

This commit is contained in:
Rich 2009-10-22 19:03:46 +00:00
parent fd709f3fb7
commit 8496e3128a

View File

@ -19,7 +19,7 @@ namespace VEPROMS.CSLA.Library
public void FixTransitionText(TransitionInfo tran) public void FixTransitionText(TransitionInfo tran)
{ {
string transText = tran.ResolvePathTo(); string transText = tran.ResolvePathTo();
string lookFor = string.Format(@"<START\]\\v0 (.*?)\\v #Link:Transition.*?:{0} {1}.*?\[END>", tran.TranType, tran.TransitionID); string lookFor = string.Format(@"<START\]\\v0 ([^#]*?)\\v #Link:Transition[^:]*?:{0} {1} [0-9]*\[END>", tran.TranType, tran.TransitionID);
Match m = Regex.Match(Text, lookFor); Match m = Regex.Match(Text, lookFor);
if (m != null && m.Groups.Count > 1) if (m != null && m.Groups.Count > 1)
{ {