gethugothemes / bookworm-light-hugo

Bookworm is a clean and modern Hugo blog theme focused on high speed and support multiple authors.
https://gethugothemes.com/products/bookworm/?utm_source=bookworm_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
100 stars 76 forks source link

Fix issue with search query appearance #29

Closed sfoteini closed 2 years ago

sfoteini commented 2 years ago

This PR resolves #28

  1. In the replace function, the plus sign (+) is replaced by a RegEx expression.
  2. The decodeURIComponent() function is used to decode the search query.