Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
arpowers committed Mar 8, 2024
1 parent a59f045 commit ab92180
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions @fiction/plugin-sites/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export function incrementSlugId(slug?: string): string {
if (!slug)
return 'view-1'

if (typeof slug !== 'string')
slug = String(slug)

// Handle slugs starting with an underscore
if (slug.startsWith('_')) {
// Remove the leading underscore and prepend with 'old-'
Expand Down

0 comments on commit ab92180

Please sign in to comment.