mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
fix: Adjusted check on query URL domain
This commit is contained in:
1 parent
e103a708df
commit
5ac130ab45
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
const logger = require('../../services/logger');
|
const logger = require('../../services/logger');
|
||||||
|
|
||||||
exports.transformQuery = async (query) => {
|
exports.transformQuery = async (query) => {
|
||||||
if (query.includes('open.spotify.com')) {
|
if (query.startsWith('https://open.spotify.com/')) {
|
||||||
try {
|
try {
|
||||||
// regex to check for country-based Spotify url
|
// regex to check for country-based Spotify url
|
||||||
const regex = new RegExp(
|
const regex = new RegExp(
|
||||||
|
|||||||
Reference in new issue
Block a user