Skip to content

Commit

Permalink
fix: unnecessary escape character (#6411)
Browse files Browse the repository at this point in the history
  • Loading branch information
wssgcg1213 authored Jul 24, 2023
1 parent 19bdfb1 commit e9c0073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime/src/runServerApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ function renderDocument(options: RenderDocumentOptions): Response {
/**
* ref: https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/server.tsx
*/
const REGEXP_WITH_HOSTNAME = /^https?:\/\/[^\/]+/i;
const REGEXP_WITH_HOSTNAME = /^https?:\/\/[^/]+/i;
function getLocation(url: string) {
// In case of invalid URL, provide a default base url.
const locationPath = url.replace(REGEXP_WITH_HOSTNAME, '') || '/';
Expand Down

0 comments on commit e9c0073

Please sign in to comment.