fix: Adjusted check on query URL domain

This commit is contained in:
Marius Begby committed 2023-07-18 17:35:44 +02:00
1 parent e103a708df
commit 5ac130ab45
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(