Add support for prepending URL with '<' and appending with '>'

This commit is contained in:
SileNce5k 2025-06-18 00:36:32 +02:00
parent 340727ae60
commit 09eee1a0ca
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -16,6 +16,9 @@ module.exports = {
let url;
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)
}
try {
url = new URL(args[0]);
url = url.href;