From f989e52a13bfd24d0593982db9bc60694952778b Mon Sep 17 00:00:00 2001 From: John Date: Tue, 13 Sep 2016 18:03:48 +0000 Subject: [PATCH] B2016-182 fixed replace word logic that was replacing words surrounded by dashes --- PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs index c448d2a3..fbff1e2e 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs @@ -1933,7 +1933,7 @@ namespace VEPROMS.CSLA.Library // 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 + @"(?