Skip to content

Commit

Permalink
Update path matching logic in usage info
Browse files Browse the repository at this point in the history
  • Loading branch information
pmmmwh authored and n4bb12 committed Nov 22, 2019
1 parent df11d1c commit 124920e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/plugin/usage-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export function getUsageInfo() {

const configBase = (window as any).VERDACCIO_API_URL
? (window as any).VERDACCIO_API_URL
.replace(/^https?/, "")
.replace(/\/-\/verdaccio\//, "")
.replace(/^https?:/, "")
.replace(/-\/verdaccio\/$/, "")
: `//${location.host}${location.pathname}`
const authToken = localStorage.getItem("npm")
return [
Expand Down

0 comments on commit 124920e

Please sign in to comment.