2021-09-05 15:44:47 +01:00
|
|
|
namespace isnd.Helpers
|
|
|
|
|
{
|
|
|
|
|
public static class PackageIdHelpers
|
|
|
|
|
{
|
|
|
|
|
internal static bool SeparatedByMinusMatch(string id, string q)
|
|
|
|
|
{
|
|
|
|
|
foreach (var part in id.Split('-'))
|
|
|
|
|
{
|
2022-10-17 19:17:04 +01:00
|
|
|
if (part.Equals(q, System.StringComparison.InvariantCultureIgnoreCase)) return true;
|
2021-09-05 15:44:47 +01:00
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|