Merge pull request #84 from mariusbegby/fix-spotify-query-check

fix: Adjusted check on query URL domain
This commit is contained in:
Marius Begby authored and GitHub committed 2023-07-18 17:39:50 +02:00
commit 50a58a320f
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(