No matching track is returned if it is an @username track
The issue is in here somewhere, but my linq skills are terrible so not quite sure where yet :)
```
private string[] GetMatchingKeywords(string input)
{
var regexToUse = _tracksContainsDollarTag ? _getStringWordsWithCashTagRegex : _getStringWordsRegex;
return regexToUse
.Matches(input.ToLower())
.OfType<Match>()
.Where(match =>
{
if (match.Value[0] == '#' || match.Value[0] == '$')
{
return _uniqueKeywordsHashSet.Contains(match.Value) ||
_uniqueKeywordsHashSet.Contains(match.Value.Substring(1, match.Value.Length - 1));
}
return _uniqueKeywordsHashSet.Contains(match.Value);
})
.Select(x => x.Value).ToArray();
}
```
Comments: ** Comment from web user: user_martin **
The issue is in here somewhere, but my linq skills are terrible so not quite sure where yet :)
```
private string[] GetMatchingKeywords(string input)
{
var regexToUse = _tracksContainsDollarTag ? _getStringWordsWithCashTagRegex : _getStringWordsRegex;
return regexToUse
.Matches(input.ToLower())
.OfType<Match>()
.Where(match =>
{
if (match.Value[0] == '#' || match.Value[0] == '$')
{
return _uniqueKeywordsHashSet.Contains(match.Value) ||
_uniqueKeywordsHashSet.Contains(match.Value.Substring(1, match.Value.Length - 1));
}
return _uniqueKeywordsHashSet.Contains(match.Value);
})
.Select(x => x.Value).ToArray();
}
```
Comments: ** Comment from web user: user_martin **
Many thanks as always :)