Skip to content

Commit

Permalink
capricorn86#515@patch: Continue fixes default pathname when parse URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mas0nShi committed Jun 24, 2022
1 parent d9570d6 commit a9f739b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/happy-dom/src/location/URL.ts
@@ -1,5 +1,5 @@
const URL_REGEXP =
/(https?:)*\/\/([-a-zA-Z0-9@:%._\+~#=]{2,256}[a-z]{2,6})(:[0-9]*)?([-a-zA-Z0-9@:%_\+.~c&//=]*)(\?[^#]*)?(#.*)?/;
/(https?:)\/\/([-a-zA-Z0-9@:%._\+~#=]{2,256}[a-z]{2,6})(:[0-9]*)?([-a-zA-Z0-9@:%_\+.~c&//=]*)(\?[^#]*)?(#.*)?/;
const PATH_REGEXP = /([-a-zA-Z0-9@:%_\+.~c&//=]*)(\?[^#]*)?(#.*)?/;

/**
Expand Down

0 comments on commit a9f739b

Please sign in to comment.