20 lines
475 B
TypeScript
20 lines
475 B
TypeScript
/**
|
|
* Product filtering configuration
|
|
* Products matching these patterns will be excluded from the website
|
|
*/
|
|
|
|
export const EXCLUDED_PRODUCT_PATTERNS = [
|
|
"Service Fee",
|
|
"Service Rate",
|
|
"Hourly Service",
|
|
]
|
|
|
|
/**
|
|
* Check if a product name should be excluded
|
|
*/
|
|
export function shouldExcludeProduct(name: string): boolean {
|
|
const lowerName = name.toLowerCase()
|
|
return EXCLUDED_PRODUCT_PATTERNS.some((pattern) =>
|
|
lowerName.includes(pattern.toLowerCase())
|
|
)
|
|
}
|