B2026-053-Find-Unlinked-Values-of-Selected
This commit is contained in:
@@ -2199,7 +2199,7 @@ namespace Volian.Controls.Library
|
|||||||
if (match.Success) // Special case for percents.
|
if (match.Success) // Special case for percents.
|
||||||
{
|
{
|
||||||
int sl = SearchString.Length;
|
int sl = SearchString.Length;
|
||||||
int precentIdx = SearchString.IndexOf('%');
|
int precentIdx = SearchString.LastIndexOf('%');
|
||||||
int startIndex = 0;
|
int startIndex = 0;
|
||||||
if (sl == precentIdx + 1) // % the last char.
|
if (sl == precentIdx + 1) // % the last char.
|
||||||
{
|
{
|
||||||
@@ -2207,12 +2207,26 @@ namespace Volian.Controls.Library
|
|||||||
var isNumeric = int.TryParse(ss, out int n);
|
var isNumeric = int.TryParse(ss, out int n);
|
||||||
if (isNumeric == true) // B2026-053 other that a % are the rest of the characters numbers.
|
if (isNumeric == true) // B2026-053 other that a % are the rest of the characters numbers.
|
||||||
{
|
{
|
||||||
ss = ' ' + SearchString; //B2026-053 add a space prefix to make the search exact. If search is 5% this makes it excult 25% 55% etc.;
|
ss = ' ' + SearchString + ' '; // to get exact match add spaces before and after search string.
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ss = ' ' + SearchString + ' '; // string it not a percent.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ss = ' ' + SearchString + ' '; // Exact match add spaces before and after search string.
|
int strl2 = SearchString.Length;
|
||||||
|
int prcIdx2 = SearchString.LastIndexOf(' ');
|
||||||
|
int strIdx2 = 0;
|
||||||
|
if (strl2 == prcIdx2 + 1) // if the last char is ' ' the last char.
|
||||||
|
{
|
||||||
|
ss = ' ' + SearchString; //B2026-053 add a space prefix to make the search exact. If search is 5% this makes it excult 25% 55% etc.;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ss = ' ' + SearchString + ' '; // Exact match add spaces before and after search string.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user