Genius API support for accented characters; fixes #284
This commit is contained in:
@ -65657,7 +65657,6 @@ function findTrackLyrics(track) {
|
||||
query = query.toLowerCase();
|
||||
query = query.replace(/\([^)]*\) */g, ''); // anything in circle-braces
|
||||
query = query.replace(/\([^[]*\] */g, ''); // anything in square-braces
|
||||
query = query.replace(/[^A-Za-z0-9\s]/g, ''); // non-alphanumeric
|
||||
|
||||
sendRequest(dispatch, getState, 'search?q=' + encodeURIComponent(query)).then(function (response) {
|
||||
if (response.response.hits && response.response.hits.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user