This commit is contained in:
parent
fe93c5427b
commit
ee85f979c8
@ -178,6 +178,18 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
#region AlignHLSTabWithSect
|
||||||
|
[Category("Miscellaneous")]
|
||||||
|
[Description("Align HLS Tab With Sect")]
|
||||||
|
private LazyLoad<bool> _AlignHLSTabWithSect;
|
||||||
|
public bool AlignHLSTabWithSect
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return LazyLoad(ref _AlignHLSTabWithSect, "@AlignHLSTabWithSect");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
#region pagestyle
|
#region pagestyle
|
||||||
private PageStyle _pagestyle;
|
private PageStyle _pagestyle;
|
||||||
[Category("Miscellaneous")]
|
[Category("Miscellaneous")]
|
||||||
|
@ -1482,7 +1482,11 @@ namespace Volian.Controls.Library
|
|||||||
//RegexOptions myOptions = (rs.Flag & E_ReplaceFlags.CaseInsens) == E_ReplaceFlags.CaseInsens ? RegexOptions.IgnoreCase & RegexOptions.Singleline : RegexOptions.None & RegexOptions.Singleline;
|
//RegexOptions myOptions = (rs.Flag & E_ReplaceFlags.CaseInsens) == E_ReplaceFlags.CaseInsens ? RegexOptions.IgnoreCase & RegexOptions.Singleline : RegexOptions.None & RegexOptions.Singleline;
|
||||||
RegexOptions myOptions = (rs.Flag & E_ReplaceFlags.CaseInsens) == E_ReplaceFlags.CaseInsens ? RegexOptions.IgnoreCase: RegexOptions.None;
|
RegexOptions myOptions = (rs.Flag & E_ReplaceFlags.CaseInsens) == E_ReplaceFlags.CaseInsens ? RegexOptions.IgnoreCase: RegexOptions.None;
|
||||||
string replaceWord = Regex.Replace(rs.ReplaceWord, @"[[\]\\()]", @"\$0");
|
string replaceWord = Regex.Replace(rs.ReplaceWord, @"[[\]\\()]", @"\$0");
|
||||||
string pat = @"(?<=\W|^)(?<!\\u160\?)" + replaceWord + @"(?!\\u160\?)(?=\W|$)";
|
// if first or last character in replaceword is a non-word character, for example, ',', ')', or '.',
|
||||||
|
// don't use the \W, i.e. don't bother to look for a non-word character.
|
||||||
|
string wordMatchBeg = Regex.IsMatch(replaceWord.Substring(0, 1), @"\W") ? "" : @"(?<=\W|^)";
|
||||||
|
string wordMatchEnd = Regex.IsMatch(replaceWord.Substring(replaceWord.Length - 1, 1), @"\W") ? "" : @"(?=\W|$)";
|
||||||
|
string pat = wordMatchBeg + @"(?<!\\u160\?)" + replaceWord + @"(?!\\u160\?)" + wordMatchEnd;
|
||||||
dicReplaceRegex.Add(rs, new Regex(pat, myOptions));
|
dicReplaceRegex.Add(rs, new Regex(pat, myOptions));
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
|
Loading…
x
Reference in New Issue
Block a user