Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Fix route not found when url is /? #105

Merged
merged 1 commit into from
Feb 3, 2018
Merged

Conversation

thgh
Copy link
Contributor

@thgh thgh commented Jan 26, 2018

The regex should always remove the question mark, even when there is nothing behind it.

Alternative code without regex:
req.url.slice(0, (req.url + '?').indexOf('?'))

@Rich-Harris Rich-Harris merged commit 16cb1fc into sveltejs:restructure Feb 3, 2018
@Rich-Harris
Copy link
Member

thanks!

Rich-Harris added a commit that referenced this pull request Feb 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants