mirror of
https://github.com/mastodon/mastodon
synced 2024-12-04 17:58:17 +09:00
Change search modifiers to be case-insensitive (#30865)
This commit is contained in:
parent
846f59c6e9
commit
88b2d6eca5
@ -223,7 +223,7 @@ class SearchQueryTransformer < Parslet::Transform
|
|||||||
end
|
end
|
||||||
|
|
||||||
rule(clause: subtree(:clause)) do
|
rule(clause: subtree(:clause)) do
|
||||||
prefix = clause[:prefix][:term].to_s if clause[:prefix]
|
prefix = clause[:prefix][:term].to_s.downcase if clause[:prefix]
|
||||||
operator = clause[:operator]&.to_s
|
operator = clause[:operator]&.to_s
|
||||||
term = clause[:phrase] ? clause[:phrase].map { |term| term[:term].to_s }.join(' ') : clause[:term].to_s
|
term = clause[:phrase] ? clause[:phrase].map { |term| term[:term].to_s }.join(' ') : clause[:term].to_s
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user