mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
testing this for a day if its bad i just wast my time
This commit is contained in:
1 parent
fd58343ce9
commit
656cbfe149
33 files changed
+726
-102
No files matched your search
@@ -160,7 +160,7 @@ export async function runInfoActions(msg, data, lastfm, prefix, userId, targetUs
|
||||
|
||||
const tokenText = data.get("token")?.value;
|
||||
if (tokenText) {
|
||||
const dashMatch = tokenText.match(/^(.+?)\s*[-–—]\s*(.+)$/);
|
||||
const dashMatch = tokenText.length <= 300 ? tokenText.match(/^(.+?)\s*[-–—]\s*(.+)$/) : null;
|
||||
if (dashMatch) {
|
||||
artistName = dashMatch[1].trim();
|
||||
albumName = dashMatch[2].trim();
|
||||
@@ -249,7 +249,7 @@ export async function runInfoActions(msg, data, lastfm, prefix, userId, targetUs
|
||||
|
||||
const tokenText = data.get("token")?.value;
|
||||
if (tokenText) {
|
||||
const dashMatch = tokenText.match(/^(.+?)\s*[-–—]\s*(.+)$/);
|
||||
const dashMatch = tokenText.length <= 300 ? tokenText.match(/^(.+?)\s*[-–—]\s*(.+)$/) : null;
|
||||
if (dashMatch) {
|
||||
artistName = dashMatch[1].trim();
|
||||
trackName = dashMatch[2].trim();
|
||||
|
||||
Reference in new issue
Block a user