mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
Merge pull request #84 from mariusbegby/fix-spotify-query-check
fix: Adjusted check on query URL domain
This commit is contained in:
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
||||
const logger = require('../../services/logger');
|
||||
|
||||
exports.transformQuery = async (query) => {
|
||||
if (query.includes('open.spotify.com')) {
|
||||
if (query.startsWith('https://open.spotify.com/')) {
|
||||
try {
|
||||
// regex to check for country-based Spotify url
|
||||
const regex = new RegExp(
|
||||
|
||||
Reference in new issue
Block a user