[TagQuery] Force query to lower case

Fixes #510
This commit is contained in:
Sindrake 2024-07-20 15:46:40 -07:00
parent 0346f86ac7
commit f7e47b6141

View File

@ -69,7 +69,7 @@ class TagQuery
end
def self.scan(query)
tagstr = query.to_s.unicode_normalize(:nfc).strip
tagstr = query.to_s.downcase.unicode_normalize(:nfc).strip
quote_delimited = []
tagstr = tagstr.gsub(/[-~]?\w*?:".*?"/) do |match|
quote_delimited << match