We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be9800c commit 7704677Copy full SHA for 7704677
1 file changed
index.js
@@ -83,6 +83,9 @@ function processParameter(param) {
83
if (debug) console.log(`[steamid-resolver] Parameter is an url. Splitting...`)
84
var split = param.split("/")
85
86
+ if (debug) console.log(`[steamid-resolver] Checking & removing trailing slash...`)
87
+ if (split[split.length - 1] == "") split.pop() //remove trailing slash (which is now a space because of split("/"))
88
+
89
if (debug) console.log(`[steamid-resolver] Split url and returning this: ${split[split.length - 1]}`)
90
return split[split.length - 1]
91
0 commit comments