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) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -77,7 +77,7 @@
|
||||
|
||||
// Release details
|
||||
// These are automatically injected to built HTML
|
||||
var build = "1528276514";
|
||||
var build = "1528498295";
|
||||
var version = "3.21.1";
|
||||
|
||||
// Construct the script tag
|
||||
|
||||
@ -116,7 +116,6 @@ export 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(
|
||||
|
||||
Reference in New Issue
Block a user