Skip to content

Commit

Permalink
Decode URI component for search functionality in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodywasishere committed May 30, 2024
1 parent 28fd0dc commit b2703dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/tools/doc/html/js/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ document.addEventListener('DOMContentLoaded', function() {
// TODO: Add OpenSearch description
var searchQuery = location.hash.substring(3);
history.pushState({searchQuery: searchQuery}, "Search for " + searchQuery, location.href.replace(/#q=.*/, ""));
searchInput.value = searchQuery;
searchInput.value = decodeURIComponent(searchQuery);
document.addEventListener('CrystalDocs:loaded', performSearch);
}

Expand Down

0 comments on commit b2703dd

Please sign in to comment.