We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a04ff2 commit 804411fCopy full SHA for 804411f
lib/errors.js
@@ -4,7 +4,7 @@ const url = require('url')
4
5
function packageName (href) {
6
try {
7
- let basePath = new url.URL(href).pathname.substr(1)
+ let basePath = new url.URL(href).pathname.slice(1)
8
if (!basePath.match(/^-/)) {
9
basePath = basePath.split('/')
10
var index = basePath.indexOf('_rewrite')
0 commit comments