A platform for community discussion. Free, open, simple.
fix: 🐛 category & tag search regex to support thai character
siriwatknp1a2800ad07aa
diff --git a/lib/search.rb b/lib/search.rbindex 8f5615e112c..94f4777d5d9 100644--- a/lib/search.rb+++ b/lib/search.rb@@ -478,7 +478,7 @@ class Searchendend- advanced_filter(/^\#([\p{L}0-9\-:=]+)$/) do |posts, match|+ advanced_filter(/^\#([\p{L}\p{M}0-9\-:=]+)$/) do |posts, match|exact = true@@ -600,11 +600,11 @@ class Searchendend- advanced_filter(/^tags?:([\p{L}0-9,\-_+]+)$/) do |posts, match|+ advanced_filter(/^tags?:([\p{L}\p{M}0-9,\-_+]+)$/) do |posts, match|search_tags(posts, match, positive: true)end- advanced_filter(/^\-tags?:([\p{L}0-9,\-_+]+)$/) do |posts, match|+ advanced_filter(/^\-tags?:([\p{L}\p{M}0-9,\-_+]+)$/) do |posts, match|search_tags(posts, match, positive: false)end