mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
FIX: regex should behave the same in Ruby and Postgres
This commit is contained in:
parent
16076f9ab8
commit
727a45185d
@ -103,7 +103,7 @@ class Post < ActiveRecord::Base
|
||||
when 'string'
|
||||
where('raw ILIKE ?', "%#{pattern}%")
|
||||
when 'regex'
|
||||
where('raw ~ ?', pattern)
|
||||
where('raw ~ ?', "(?n)#{pattern}")
|
||||
end
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user