Skip to content

Fix: double-slash path routing bug#192

Open
abhii734 wants to merge 1 commit intopillarjs:masterfrom
abhii734:fix/double-slash-path
Open

Fix: double-slash path routing bug#192
abhii734 wants to merge 1 commit intopillarjs:masterfrom
abhii734:fix/double-slash-path

Conversation

@abhii734
Copy link
Copy Markdown

Bug

When mounting router at //, the loosen function converts it to empty string, which matches everything.

Fix

  • Add multiSlash detection in Layer constructor
  • Fix loosen() to not convert // to empty string

Test Results

  • All 694 existing tests pass

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