B2026 053 find unlinked values of selected #795
@@ -2179,13 +2179,9 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
private Dictionary<string, string> GetByWordSettings(string ss)
|
private Dictionary<string, string> GetByWordSettings(string ss)
|
||||||
{
|
{
|
||||||
|
|
||||||
Dictionary<string, string> settings = new Dictionary<string, string>();
|
Dictionary<string, string> settings = new Dictionary<string, string>();
|
||||||
|
|
||||||
string byWordPrefix = string.Empty;
|
if (Regex.IsMatch(ss, @"^[\d\.]")) // starts with a number or '.' decimal pt
|
||||||
string byWordSuffix = string.Empty;
|
|
||||||
|
|
||||||
if (Regex.IsMatch(ss, @"^[\d\.]")) // starts with a number or '.' decimal pt
|
|
||||||
{
|
{
|
||||||
|
mschill marked this conversation as resolved
Outdated
|
|||||||
settings.Add("byWordPrefix", @"[^0-9a-zA-Z.vbpi:\\-]");
|
settings.Add("byWordPrefix", @"[^0-9a-zA-Z.vbpi:\\-]");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user
Previous comments regarding Regexes still apply -- also it appears now we have 2 variables that we declared but did not use in string byWordPrefix & string byWordSuffix
I removed the two unneeded variable declarations. I used what was previous used for the regex string. If you notice both tests are looking to see what the first character is and not the whole searchstring and from that it selects different regex strings. On account of this I am not sure char.IsNumeric will work because there are searchstrings that start with a number but are a mix of numbers and characters. Example 5% code: "if (Regex.IsMatch(ss, @"^[\d.]")) // starts with a number or '.' decimal pt"