Skip to content

Commit

Permalink
Fix host matching
Browse files Browse the repository at this point in the history
  • Loading branch information
ISNing authored Jul 14, 2024
1 parent 5eb5d08 commit a316471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const routes = {
};

function routeByHosts(host) {
if (host in routes) {
if (host.replace(new RegExp(domainPostfix+"$", "i"), '') in routes) {
return routes[host]+ domainPostfix;
}
if (MODE == "debug") {
Expand Down

0 comments on commit a316471

Please sign in to comment.