Fehler behebung
This commit is contained in:
@@ -126,8 +126,8 @@ export function isSlug(param: string): boolean {
|
||||
return false; // It's a UUID
|
||||
}
|
||||
|
||||
// If it contains more than 4 hyphens and looks like our slug format, it's probably a slug
|
||||
return param.split('-').length > 4 && isValidSlug(param);
|
||||
// If it contains at least 3 parts (e.g., title-state-id or title-city-state-id) and looks like our slug format, it's probably a slug
|
||||
return param.split('-').length >= 3 && isValidSlug(param);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user