This repository has been archived on 2025-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
2024-07-17 13:57:47 -04:00

25 lines
633 B
C#

using System.Collections.Generic;
namespace Oqtane.Shared
{
public sealed class SearchUtils
{
public static List<string> GetKeywords(string keywords)
{
var keywordsList = new List<string>();
if(!string.IsNullOrEmpty(keywords))
{
foreach (var keyword in keywords.Split(' '))
{
if (!string.IsNullOrWhiteSpace(keyword.Trim()))
{
keywordsList.Add(keyword.Trim().ToLower());
}
}
}
return keywordsList;
}
}
}