Skip to content

fix(jawsboot): treat route prefixes as literal paths - #241

Merged
linkdata merged 5 commits into
mainfrom
fix/jawsboot-literal-brace-prefix
Aug 7, 2026
Merged

fix(jawsboot): treat route prefixes as literal paths#241
linkdata merged 5 commits into
mainfrom
fix/jawsboot-literal-brace-prefix

Conversation

@linkdata

@linkdata linkdata commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • serialize Bootstrap asset paths before registering ServeMux patterns
  • apply the same literal-path handling to both sourcemap 404 routes
  • document that prefix pattern syntax is treated as URL path data
  • cover invalid embedded braces and valid-but-overbroad wildcard segments with independently constructed asset URLs and a real ServeMux

Verification

  • go test -race ./jawsboot -run "^TestJawsBoot_Setup(LiteralBracePrefixes|PrefixVariants|ReturnedURLs|)$" -count=10
  • JAWS_REQUIRE_NODE=1 go test -race ./... -count=1
  • JAWS_REQUIRE_NODE=1 go test ./... -count=1
  • go vet ./...
  • staticcheck ./...
  • golangci-lint run
  • gosec -quiet ./...
  • go build ./...

Fixes #235

@linkdata
linkdata force-pushed the fix/jawsboot-literal-brace-prefix branch from 4468a10 to 375f8f8 Compare August 7, 2026 05:43
@linkdata
linkdata merged commit 770c1e2 into main Aug 7, 2026
7 checks passed
@linkdata
linkdata deleted the fix/jawsboot-literal-brace-prefix branch August 7, 2026 07:09
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.

jawsboot.Setup treats brace-containing prefixes as ServeMux wildcard syntax

1 participant