Slice first character of the argument
All checks were successful
CI / CI (push) Successful in 1m26s

This commit is contained in:
SileNce5k 2025-06-21 13:35:58 +02:00
parent ad73a83514
commit 8314be972f
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -22,7 +22,7 @@ module.exports = {
if(args.length > 0){
if(args[0].charAt(0) === '<' && args[0].charAt(args[0].length - 1) === '>'){
args[0] = args[0].slice(0, args[0].length - 1)
args[0] = args[0].slice(1, args[0].length - 1)
}
try {
url = new URL(args[0]);