Skip to content

fix(view): handle view names ending with a dot#7375

Closed
Pradip-Garai wants to merge 1 commit into
expressjs:masterfrom
Pradip-Garai:master
Closed

fix(view): handle view names ending with a dot#7375
Pradip-Garai wants to merge 1 commit into
expressjs:masterfrom
Pradip-Garai:master

Conversation

@Pradip-Garai

Copy link
Copy Markdown

Avoid calling require("") with an empty string when the resolved extension is a single dot (e.g., "index."). This prevents an opaque TypeError and correctly falls back to resolving the view or yielding a clean lookup error.

Also adds an automated regression test in test/app.render.js.

Avoid calling require("") with an empty string when the resolved extension
is a single dot (e.g., "index."). This prevents an opaque TypeError and
correctly falls back to resolving the view or yielding a clean lookup error.

Also adds an automated regression test in test/app.render.js.
@krzysdz

krzysdz commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Duplicate of #7351

@krzysdz krzysdz marked this as a duplicate of #7351 Jul 12, 2026
@krzysdz krzysdz closed this Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants