mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
rollback
This commit is contained in:
1 parent
2f51b7e1d7
commit
97fe282bb3
29 files changed
+101
-431
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.length <= 300 ? tokenText.match(/^(.+?)\s*[-–—]\s*(.+)$/) : null;
|
||||
const dashMatch = tokenText.match(/^(.+?)\s*[-–—]\s*(.+)$/);
|
||||
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.length <= 300 ? tokenText.match(/^(.+?)\s*[-–—]\s*(.+)$/) : null;
|
||||
const dashMatch = tokenText.match(/^(.+?)\s*[-–—]\s*(.+)$/);
|
||||
if (dashMatch) {
|
||||
artistName = dashMatch[1].trim();
|
||||
trackName = dashMatch[2].trim();
|
||||
|
||||
Reference in new issue
Block a user