From 2deb6dc799018ee22e0a5256c33f320582ad619a Mon Sep 17 00:00:00 2001 From: John Date: Fri, 11 Oct 2013 13:14:31 +0000 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20do=20replace=20words=20if=20the?= =?UTF-8?q?re=20is=20a=20dash=20before=20or=20after=20the=20word?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/DisplayText.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/DisplayText.cs b/PROMS/Volian.Controls.Library/DisplayText.cs index a41d3802..8feeeb3e 100644 --- a/PROMS/Volian.Controls.Library/DisplayText.cs +++ b/PROMS/Volian.Controls.Library/DisplayText.cs @@ -1545,7 +1545,7 @@ namespace Volian.Controls.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 + @"(?