Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
KishiTheMechanic committed Oct 28, 2024
1 parent 4c80ceb commit 497e7c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@elsoul/fresh-sitemap",
"version": "0.7.11",
"version": "0.7.12",
"description": "Lightweight global state management library for Fresh framework using Preact signals.",
"runtimes": ["deno", "browser"],
"exports": "./mod.ts",
Expand Down
8 changes: 0 additions & 8 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,6 @@ async function generateSitemap(

// Split segments and check if any segment should exclude this path
const segments = relPath.split(SEPARATOR)
if (
segments.some((segment) =>
segment.startsWith('_') || segment.includes('(')
)
) {
console.log(`Excluded due to _ or (): ${path}`)
return // Skip paths with `_` or `()` without modifying or replacing
}

// Construct normalized path and mark it for inclusion
const normalizedPath = `/${segments.join('/')}`.replace(/\.tsx$/, '')
Expand Down

0 comments on commit 497e7c1

Please sign in to comment.