Skip to content

Commit

Permalink
Improved engines URL parameter to support spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
cx20 committed Sep 7, 2024
1 parent 38c9940 commit cfd2135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ let engines = [{
}];

function queryEngines(){
let res = location.search.match(/engines=([\w\.,]+)/);
let res = decodeURIComponent(location.search).match(/engines=([\w\.\s,]+)/);
if(res && res[1]){
let engineDict = {};
engines.forEach(function(engine){
Expand Down

0 comments on commit cfd2135

Please sign in to comment.