Use isAscii...()
This commit is contained in:
@ -154,7 +154,7 @@ namespace Elwig.Models {
|
||||
public virtual BillingAddr BillingAddress { get; private set; }
|
||||
|
||||
public int SearchScore(IEnumerable<string> keywords) {
|
||||
keywords = keywords.Where(s => s.Length >= 2 || (s.Length > 0 && s.All(c => char.IsDigit(c))));
|
||||
keywords = keywords.Where(s => s.Length >= 2 || (s.Length > 0 && s.All(c => char.IsAsciiDigit(c))));
|
||||
if (!keywords.Any())
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user