mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 02:13:26 -05:00
FIX: regex should behave the same in Ruby and Postgres
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ class Post < ActiveRecord::Base
|
||||
when 'string'
|
||||
where('raw ILIKE ?', "%#{pattern}%")
|
||||
when 'regex'
|
||||
where('raw ~ ?', pattern)
|
||||
where('raw ~ ?', "(?n)#{pattern}")
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user