aoijs / aoi.js

aoi.js - The most advanced string-based package to create a Discord Bot fast and powerful.
https://aoi.js.org
Apache License 2.0
332 stars 132 forks source link

fix: parsing of urls #573

Closed Faf4a closed 5 months ago

Faf4a commented 5 months ago

Fixes invalid parsing of urls within the button/component parser.

Tested and works, if you want to check for yourself: https://regex101.com/r/4UrkcD/1

+ button = button?.addBrackets().split(/:(?![/][/])/).map((x) => x.trim());
- button = button?.split(":").map((x) => x.trim());