Sitelet https://github.com/lukeed/regexparam/pull/37
Skip to content

docs: fix route examples and Deno imports - #37

Open
Likio3000 wants to merge 1 commit into
lukeed:mainfrom
Likio3000:docs/correct-route-and-import-examples-20260923
Open

Likio3000 wants to merge 1 commit into
lukeed:mainfrom
Likio3000:docs/correct-route-and-import-examples-20260923

Conversation

@Likio3000

Copy link
Copy Markdown

The Usage and Regular Expressions code blocks redeclare let baz and const named, preventing them from parsing. The Deno examples also request a default export even though the linked source exposes named parse and inject exports.

Use distinct bindings, add the regular-expression example's namespace import, and use namespace imports in the Deno alternatives. Also align the optional-wildcard pattern comment with default strict matching and remove the outdated parser-only/string-only statement.

Validation: read src/index.js, index.d.ts and package entry points; checked the regex-building branches statically. Both original code blocks fail Node syntax checking for duplicate declarations, while the corrected blocks pass node --check --input-type=module. No snippets or repository code were evaluated, no imports or CDN URLs were resolved, and the project suite was not run. Only the README changes.

Prepared with AI assistance (OpenAI Codex), with source and diff review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant