Skip to content

Commit

Permalink
search plugin; allow searching for any character (was alphanum) #2331 #…
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Nov 23, 2023
1 parent bbd0d3e commit 339dc70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin/search/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const Plugin = () => {

this.setRegex = function(input)
{
input = input.replace(/^[^\w]+|[^\w]+$/g, "").replace(/[^\w'-]+/g, "|");
input = input.trim().replace(/\s/g, "|");
matchRegex = new RegExp("(" + input + ")","i");
}

Expand Down
2 changes: 1 addition & 1 deletion plugin/search/search.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin/search/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 339dc70

Please sign in to comment.